![]() |
OS
v1.8.0
Documentation
|
A class to encapsulate the OS clock. More...
#include <clock.hpp>
Public Member Functions | |
| clock (clock &other)=delete | |
| void | operator= (const clock &)=delete |
Static Public Member Functions | |
| static void | sysTick (void) noexcept |
| Feed the system tick. | |
| static bool | timeDeadLineCheck (const qOS::clock_t ti, const qOS::clock_t td) noexcept |
| Perform a timestamp check. This function computes the amount of time elapsed between the current instant and the init timestamp ti and checks if the result is greater than td. | |
| static bool | setTickProvider (const getTickFcn_t provider) noexcept |
| Set the clock-tick provider function. | |
Static Public Attributes | |
| static getTickFcn_t | getTick |
| Return the current tick used by the OS. | |
| static const qOS::duration_t | NONE |
| To specify a null time value. | |
| static const qOS::duration_t | IMMEDIATE |
| To specify a non-wait time value. | |
A class to encapsulate the OS clock.
|
delete |
|
delete |
|
staticnoexcept |
Set the clock-tick provider function.
| [in] | provider | A pointer to the tick provider function |
true on success, otherwise returns false.
|
staticnoexcept |
Feed the system tick.
|
staticnoexcept |
Perform a timestamp check. This function computes the amount of time elapsed between the current instant and the init timestamp ti and checks if the result is greater than td.
| [in] | ti | Init timestamp in epochs |
| [in] | td | Elapsed time to check in epochs |
true if the elapsed time (t-ti) is greater or equal to td. Otherwise returns false
|
static |
Return the current tick used by the OS.
|
static |
To specify a non-wait time value.
|
static |
To specify a null time value.