Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1918)

Unified Diff: net/quic/quic_clock.cc

Issue 14816006: Land Recent QUIC changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing NET_PRIVATE_EXPORT to QuicWallTime Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_clock.h ('k') | net/quic/quic_clock_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_clock.cc
diff --git a/net/quic/quic_clock.cc b/net/quic/quic_clock.cc
index 26c1a659032dc43ae56194c675f982e46dad2426..6c8dd48d21852289c7219b00619ed9ded9ebe850 100644
--- a/net/quic/quic_clock.cc
+++ b/net/quic/quic_clock.cc
@@ -22,8 +22,9 @@ QuicTime QuicClock::Now() const {
return QuicTime(base::TimeTicks::Now());
}
-QuicTime::Delta QuicClock::NowAsDeltaSinceUnixEpoch() const {
- return QuicTime::Delta(base::Time::Now() - base::Time::UnixEpoch());
+QuicWallTime QuicClock::WallNow() const {
+ return QuicWallTime::FromUNIXSeconds(
+ base::Time::Now().ToInternalValue() / 1000000);
}
} // namespace net
« no previous file with comments | « net/quic/quic_clock.h ('k') | net/quic/quic_clock_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698