17 #ifndef CARTOGRAPHER_COMMON_TIME_H_ 18 #define CARTOGRAPHER_COMMON_TIME_H_ 30 (719162ll * 24ll * 60ll * 60ll);
34 using period = std::ratio<1, 10000000>;
35 using duration = std::chrono::duration<rep, period>;
36 using time_point = std::chrono::time_point<UniversalTimeScaleClock>;
65 #endif // CARTOGRAPHER_COMMON_TIME_H_ common::Duration FromMilliseconds(const int64 milliseconds)
std::ostream & operator<<(std::ostream &os, const Time time)
constexpr int64 kUtsEpochOffsetFromUnixEpochInSeconds
std::ratio< 1, 10000000 > period
UniversalTimeScaleClock::time_point Time
Time FromUniversal(const int64 ticks)
Duration FromSeconds(const double seconds)
UniversalTimeScaleClock::duration Duration
std::chrono::time_point< UniversalTimeScaleClock > time_point
std::chrono::duration< rep, period > duration
int64 ToUniversal(const Time time)
static constexpr bool is_steady
double ToSeconds(const Duration duration)