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

Unified Diff: net/tools/quic/quic_epoll_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/tools/quic/quic_epoll_clock.h ('k') | net/tools/quic/quic_epoll_clock_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_epoll_clock.cc
diff --git a/net/tools/quic/quic_epoll_clock.cc b/net/tools/quic/quic_epoll_clock.cc
index eb7eb651bc46b894f10dc0ed7b372e19ef264496..e310256cc7ab97be74fc840eef30c380005391bf 100644
--- a/net/tools/quic/quic_epoll_clock.cc
+++ b/net/tools/quic/quic_epoll_clock.cc
@@ -25,8 +25,9 @@ QuicTime QuicEpollClock::Now() const {
QuicTime::Delta::FromMicroseconds(epoll_server_->NowInUsec()));
}
-QuicTime::Delta QuicEpollClock::NowAsDeltaSinceUnixEpoch() const {
- return QuicTime::Delta::FromMicroseconds(epoll_server_->NowInUsec());
+QuicWallTime QuicEpollClock::WallNow() const {
+ return QuicWallTime::FromUNIXSeconds(
+ epoll_server_->ApproximateNowInUsec() / 1000000);
}
} // namespace tools
« no previous file with comments | « net/tools/quic/quic_epoll_clock.h ('k') | net/tools/quic/quic_epoll_clock_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698