diff options
Diffstat (limited to 'net/quic/quic_time.h')
-rw-r--r-- | net/quic/quic_time.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/net/quic/quic_time.h b/net/quic/quic_time.h index e5ca02a..a1fb6a3 100644 --- a/net/quic/quic_time.h +++ b/net/quic/quic_time.h @@ -23,14 +23,14 @@ class NET_EXPORT_PRIVATE QuicTime { // time, stored in microsecond resolution. class NET_EXPORT_PRIVATE Delta { public: - // Default constructor initializes to 0. - Delta(); - explicit Delta(base::TimeDelta delta); // Create a object with infinite offset time. static Delta Infinite(); + // Create a object with infinite offset time. + static Delta Zero(); + // Converts a number of milliseconds to a time offset. static Delta FromMilliseconds(int64 ms); @@ -60,11 +60,12 @@ class NET_EXPORT_PRIVATE QuicTime { friend class QuicTime; }; - // Default constructor initializes to time 0. - QuicTime(); - explicit QuicTime(base::TimeTicks ticks); + // Creates a new QuicTime with an internal value of 0. IsInitialized() + // will return true for these times. + static QuicTime Zero(); + // Create a new QuicTime holding the time_ms. static QuicTime FromMilliseconds(int64 time_ms); |