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

Unified Diff: webrtc/base/timeutils.h

Issue 1859413002: Delete unused code in rtc timeutils. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Deleted a TODO comment. Created 4 years, 8 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 | « no previous file | webrtc/base/timeutils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/timeutils.h
diff --git a/webrtc/base/timeutils.h b/webrtc/base/timeutils.h
index f0269b572fced331fc304d0773958fd838d68efc..4af0d9538f058f9d969f954cd9a7fb5620463fd7 100644
--- a/webrtc/base/timeutils.h
+++ b/webrtc/base/timeutils.h
@@ -29,9 +29,6 @@ static const int64_t kNumNanosecsPerMillisec =
static const int64_t kNumNanosecsPerMicrosec =
kNumNanosecsPerSec / kNumMicrosecsPerSec;
-// January 1970, in NTP milliseconds.
-static const int64_t kJan1970AsNtpMillisecs = INT64_C(2208988800000);
-
typedef uint32_t TimeStamp;
// Returns the current time in milliseconds in 32 bits.
@@ -52,16 +49,9 @@ uint64_t TimeMicros();
// Returns the current time in nanoseconds.
uint64_t TimeNanos();
-// Stores current time in *tm and microseconds in *microseconds.
-void CurrentTmTime(struct tm *tm, int *microseconds);
-
// Returns a future timestamp, 'elapsed' milliseconds from now.
uint32_t TimeAfter(int32_t elapsed);
-// Comparisons between time values, which can wrap around.
-bool TimeIsBetween(uint32_t earlier,
- uint32_t middle,
- uint32_t later); // Inclusive
bool TimeIsLaterOrEqual(uint32_t earlier, uint32_t later); // Inclusive
bool TimeIsLater(uint32_t earlier, uint32_t later); // Exclusive
@@ -93,11 +83,6 @@ inline int32_t TimeUntil(uint32_t later) {
return TimeDiff(later, Time());
}
-// Converts a unix timestamp in nanoseconds to an NTP timestamp in ms.
-inline int64_t UnixTimestampNanosecsToNtpMillisecs(int64_t unix_ts_ns) {
- return unix_ts_ns / kNumNanosecsPerMillisec + kJan1970AsNtpMillisecs;
-}
-
class TimestampWrapAroundHandler {
public:
TimestampWrapAroundHandler();
« no previous file with comments | « no previous file | webrtc/base/timeutils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698