16#if defined(CLOCK_MONOTONIC_RAW)
17 return CLOCK_MONOTONIC_RAW;
19 return CLOCK_MONOTONIC;
29 default:
return CLOCK_REALTIME;
36 constexpr auto const ZERO_SECONDS =
fromSeconds(0.0);
38 constexpr auto const TAI_LEAP_SECONDS =
fromSeconds(37.0);
42#if !defined(CLOCK_TAI)
45 default:
return ZERO_SECONDS;
constexpr clockid_t clockToId(Clock clock) noexcept
constexpr Duration getClockOffset(Clock clock) noexcept
constexpr Duration fromSeconds(double duration) noexcept