Inert Steady Clock#
Defined in namespace hal::soft
#include <libhal-soft/inert/inert_steady_clock.hpp>
-
class inert_steady_clock : public hal::steady_clock#
Inert implementation of steady clock mechanism.
Public Static Functions
-
static inline result<inert_steady_clock> create(frequency_t p_frequency, uptime_t p_uptime)#
Factory function to create inert_steady_clock object.
- Parameters:
p_frequency – - frequency_t object to return when frequency() is called
p_uptime – - uptime_t object with the starting value that will be returned when uptime() is called. The uptime will increment by 1 each time uptime() is called.
- Returns:
result<inert_steady_clock> - Constructed inert_steady_clock object
-
static inline result<inert_steady_clock> create(frequency_t p_frequency, uptime_t p_uptime)#