Lines Matching defs:QuicTime

5 // QuicTime represents one point in time, stored in microsecond resolution.
6 // QuicTime is monotonically increasing, even across system clock adjustments.
7 // The epoch (time 0) of QuicTime is unspecified.
22 // A QuicTime is a purely relative time. QuicTime values from different clocks
25 class NET_EXPORT_PRIVATE QuicTime {
27 // A QuicTime::Delta represents the signed difference between two points in
74 friend class QuicTime;
78 explicit QuicTime(base::TimeTicks ticks);
80 // Creates a new QuicTime with an internal value of 0. IsInitialized()
82 static QuicTime Zero();
84 // Creates a new QuicTime with an infinite time.
85 static QuicTime Infinite();
88 static QuicTime Max(QuicTime time1, QuicTime time2);
98 QuicTime Add(const Delta& delta) const;
100 QuicTime Subtract(const Delta& delta) const;
102 Delta Subtract(const QuicTime& other) const;
105 friend bool operator==(QuicTime lhs, QuicTime rhs);
106 friend bool operator<(QuicTime lhs, QuicTime rhs);
139 QuicTime::Delta AbsoluteDifference(QuicWallTime other) const;
143 QuicWallTime Add(QuicTime::Delta delta) const;
147 QuicWallTime Subtract(QuicTime::Delta delta) const;
155 // Non-member relational operators for QuicTime::Delta.
156 inline bool operator==(QuicTime::Delta lhs, QuicTime::Delta rhs) {
159 inline bool operator!=(QuicTime::Delta lhs, QuicTime::Delta rhs) {
162 inline bool operator<(QuicTime::Delta lhs, QuicTime::Delta rhs) {
165 inline bool operator>(QuicTime::Delta lhs, QuicTime::Delta rhs) {
168 inline bool operator<=(QuicTime::Delta lhs, QuicTime::Delta rhs) {
171 inline bool operator>=(QuicTime::Delta lhs, QuicTime::Delta rhs) {
174 // Non-member relational operators for QuicTime.
175 inline bool operator==(QuicTime lhs, QuicTime rhs) {
178 inline bool operator!=(QuicTime lhs, QuicTime rhs) {
181 inline bool operator<(QuicTime lhs, QuicTime rhs) {
184 inline bool operator>(QuicTime lhs, QuicTime rhs) {
187 inline bool operator<=(QuicTime lhs, QuicTime rhs) {
190 inline bool operator>=(QuicTime lhs, QuicTime rhs) {