summaryrefslogtreecommitdiffstats
path: root/net/quic/quic_clock.h
diff options
context:
space:
mode:
authorwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-19 01:34:41 +0000
committerwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-19 01:34:41 +0000
commit5558281c413d933567b16e3aa35429fd769b8c87 (patch)
treed7e62bc5813f2e8bfd95e94ae238965e679417e9 /net/quic/quic_clock.h
parent372c8f8a3549e4a004c12b0b31f56cae9eba0edc (diff)
downloadchromium_src-5558281c413d933567b16e3aa35429fd769b8c87.zip
chromium_src-5558281c413d933567b16e3aa35429fd769b8c87.tar.gz
chromium_src-5558281c413d933567b16e3aa35429fd769b8c87.tar.bz2
Add QuicClock::NowAsDeltaSinceUnixEpoch() and
QuicTime::Delta::ToSeconds(). Clarify the definition of QuicTime. Merge internal CL: 39501983 R=rch@chromium.org BUG=none TEST=net_unittests Review URL: https://codereview.chromium.org/11573055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173827 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/quic/quic_clock.h')
-rw-r--r--net/quic/quic_clock.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/quic/quic_clock.h b/net/quic/quic_clock.h
index 5bc5f97..dca211e 100644
--- a/net/quic/quic_clock.h
+++ b/net/quic/quic_clock.h
@@ -22,6 +22,11 @@ class NET_EXPORT_PRIVATE QuicClock {
// Returns the approximate current time as a QuicTime object.
virtual QuicTime Now() const;
+
+ // Returns the current time as an offset from the Unix epoch (1970-01-01
+ // 00:00:00 GMT). This function may return a smaller Delta in subsequent
+ // calls if the system clock is changed.
+ virtual QuicTime::Delta NowAsDeltaSinceUnixEpoch() const;
};
} // namespace net