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

Unified Diff: net/tools/quic/quic_epoll_clock.cc

Issue 1421873007: Change QuicWallTime to have microsecond granularity. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@106444524
Patch Set: Created 5 years, 1 month 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
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 450afb8c52442e80249a1be47a731f7a9b673abc..62cb6bd9244a8cb6083fa34287842b0973f0bbf5 100644
--- a/net/tools/quic/quic_epoll_clock.cc
+++ b/net/tools/quic/quic_epoll_clock.cc
@@ -25,5 +25,10 @@ QuicTime QuicEpollClock::Now() const {
QuicTime::Delta::FromMicroseconds(epoll_server_->NowInUsec()));
}
+QuicWallTime QuicEpollClock::WallNow() const {
+ return QuicWallTime::FromUNIXMicroseconds(
+ epoll_server_->ApproximateNowInUsec());
+}
+
} // namespace tools
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698