WPILibC++ 2027.0.0-alpha-5
Loading...
Searching...
No Matches
wpi::hal::monotonic_clock Class Reference

A std::chrono compatible wrapper around the HAL monotonic timer. More...

#include <wpi/hal/monotonic_clock.hpp>

Public Types

using rep = std::chrono::microseconds::rep
using period = std::chrono::microseconds::period
using duration = std::chrono::microseconds
using time_point = std::chrono::time_point<monotonic_clock>

Static Public Member Functions

static time_point now () noexcept

Static Public Attributes

static constexpr bool is_steady = true

Detailed Description

A std::chrono compatible wrapper around the HAL monotonic timer.

Member Typedef Documentation

◆ duration

using wpi::hal::monotonic_clock::duration = std::chrono::microseconds

◆ period

using wpi::hal::monotonic_clock::period = std::chrono::microseconds::period

◆ rep

using wpi::hal::monotonic_clock::rep = std::chrono::microseconds::rep

◆ time_point

using wpi::hal::monotonic_clock::time_point = std::chrono::time_point<monotonic_clock>

Member Function Documentation

◆ now()

time_point wpi::hal::monotonic_clock::now ( )
inlinestaticnoexcept

Member Data Documentation

◆ is_steady

bool wpi::hal::monotonic_clock::is_steady = true
staticconstexpr

The documentation for this class was generated from the following file: