19 using rep = std::chrono::microseconds::rep;
20 using period = std::chrono::microseconds::period;
22 using time_point = std::chrono::time_point<monotonic_clock>;
28 return time_point{std::chrono::microseconds{currentTime}};
A std::chrono compatible wrapper around the HAL monotonic timer.
Definition monotonic_clock.hpp:17
std::chrono::microseconds::rep rep
Definition monotonic_clock.hpp:19
std::chrono::microseconds duration
Definition monotonic_clock.hpp:21
std::chrono::time_point< monotonic_clock > time_point
Definition monotonic_clock.hpp:22
static time_point now() noexcept
Definition monotonic_clock.hpp:26
static constexpr bool is_steady
Definition monotonic_clock.hpp:24
std::chrono::microseconds::period period
Definition monotonic_clock.hpp:20
uint64_t HAL_GetMonotonicTime(void)
Reads the microsecond-resolution monotonic timer.
WPILib Hardware Abstraction Layer (HAL) namespace.
Definition Types.hpp:9