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

Unified Diff: net/quic/platform/api/quic_clock.h

Issue 2871573009: Use clock_gettime instead of base::TimeTicks::Now() in QUIC (Closed)
Patch Set: iOS 10 Created 3 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
Index: net/quic/platform/api/quic_clock.h
diff --git a/net/quic/platform/api/quic_clock.h b/net/quic/platform/api/quic_clock.h
index e95e0bc8a1bd911d70d7cc58cba7d645cf3bedff..554d590a60b9dea4cb849b9b05ae4d1e4912afbc 100644
--- a/net/quic/platform/api/quic_clock.h
+++ b/net/quic/platform/api/quic_clock.h
@@ -33,6 +33,12 @@ class QUIC_EXPORT_PRIVATE QuicClock {
// Converts |walltime| to a QuicTime relative to this clock's epoch.
virtual QuicTime ConvertWallTimeToQuicTime(
const QuicWallTime& walltime) const;
+
+ protected:
+ // Creates a new QuicTime using |time_us| as the internal value.
+ QuicTime CreateTimeFromMicroseconds(uint64_t time_us) const {
+ return QuicTime(time_us);
+ }
};
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698