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 Functions

inline constexpr inert_steady_clock(hal::hertz p_frequency, std::uint64_t p_uptime)#

Create inert_steady_clock object.

Parameters:
  • p_frequency – - what will be returned from the frequency function.

  • p_uptime – - the starting value that will be returned when uptime() is called. The uptime will increment by 1 each time uptime() is called.