Returns the number of milliseconds that have passed since the Unix epoch. This is affected by manual changes to the system clock but is more suitable for use across a cluster. For more accurate timings on the local host use the monotonic functions above.
| 55 | /// a cluster. For more accurate timings on the local host use the monotonic functions |
| 56 | /// above. |
| 57 | inline int64_t UnixMillis() { |
| 58 | return GetCurrentTimeMicros() / MICROS_PER_MILLI; |
| 59 | } |
| 60 | |
| 61 | /// Return the time 'time_us' microseconds away from now in 'abs_time'. |
| 62 | inline void TimeFromNowMicros(int64_t time_us, timespec* abs_time) { |