Time Shield Library
C++ library for working with time
Loading...
Searching...
No Matches
time_shield::detail Namespace Reference

Classes

struct  DueTimer
 Helper structure that represents a timer ready to run. More...
 
struct  RunningTimerScope
 
struct  ScheduledComparator
 Comparator that orders timers by earliest fire time. More...
 
struct  ScheduledTimer
 Data stored in the priority queue of scheduled timers. More...
 
struct  TimerState
 Internal state shared between Timer and TimerScheduler. More...
 

Typedefs

using TimerClock = std::chrono::steady_clock
 
using TimerCallback = std::function<void()>
 

Functions

TimerState *& current_timer_state ()
 

Typedef Documentation

◆ TimerCallback

using time_shield::detail::TimerCallback = std::function<void()>

Definition at line 41 of file TimerScheduler.hpp.

◆ TimerClock

using time_shield::detail::TimerClock = std::chrono::steady_clock

Definition at line 40 of file TimerScheduler.hpp.

Function Documentation

◆ current_timer_state()

TimerState *& time_shield::detail::current_timer_state ( )
inline

Definition at line 57 of file TimerScheduler.hpp.