![]() |
SatNOGS-COMMS
4.1.0
A COMMS subsystem for CubeSats
|
Chrono device abstraction. More...
#include <chrono.hpp>
Public Member Functions | |
| chrono () | |
| Construct a new chrono(time-related) object. | |
| virtual void | delay_us (size_t us)=0 |
Delays the execution of the active task for at least us microseconds. | |
| virtual void | busy_wait_us (size_t us)=0 |
| Delay execution using busy wait. | |
| virtual int64_t | time_ms ()=0 |
| Retrieves the current time in milliseconds. | |
Chrono device abstraction.
This class provides an abstraction for time related operations like measurering time and introducing delay.
Definition at line 40 of file chrono.hpp.
|
inline |
Construct a new chrono(time-related) object.
Definition at line 46 of file chrono.hpp.
|
pure virtual |
Delay execution using busy wait.
| us | the amount of microseconds to delay the execution |
|
pure virtual |
Delays the execution of the active task for at least us microseconds.
| us | the amount of microseconds to delay the execution |
|
pure virtual |
Retrieves the current time in milliseconds.