Lines Matching +full:current +full:- +full:time
4 * Use of this source code is governed by a BSD-style license
15 #include <time.h>
36 // epoch. This is useful when converting between the NTP time base and the
37 // time base used in RTCP reports.
40 // TODO(honghaiz): Define a type for the time value specifically.
48 // Sets the global source of time. This is useful mainly for unit tests. in ~ClockInterface()
55 // This method is not thread-safe; it should only be used when no other thread in ~ClockInterface()
68 // Synchronizes the current clock based upon an NTP server's epoch in in ~ClockInterface()
72 // Returns the current time in nanoseconds. The clock is synchonized with the
73 // system wall clock time upon instatiation. It may also be synchronized using
75 // drift away from the system wall clock time as time goes by.
79 // Returns the actual system time, even if a clock is set for testing.
83 // Returns the current time in milliseconds in 32 bits.
86 // Returns the current time in milliseconds in 64 bits.
89 inline int64_t Time() { in Time() function
93 // Returns the current time in microseconds.
96 // Returns the current time in nanoseconds.
109 return TimeMillis() - earlier; in TimeSince()
114 return later - TimeMillis(); in TimeUntil()
128 // Convert from tm, which is relative to 1900-01-01 00:00 to number of
129 // seconds from 1970-01-01 00:00 ("epoch"). Don't return time_t since that
138 // Note that this function obeys the system's idea about what the time
140 // system time is changed, e.g., by some other process calling
142 // measuring time intervals and timeouts.