4#include "include/types.hpp"
5#include "config/config.h"
34 constexpr qOS::duration_t operator "" _minutes(
unsigned long long int x )
42 constexpr qOS::duration_t operator "" _hours(
unsigned long long int x )
A class to encapsulate the OS clock.
Definition clock.hpp:79
static const qOS::duration_t NONE
To specify a null time value.
Definition clock.hpp:122
void operator=(const clock &)=delete
static bool setTickProvider(const getTickFcn_t provider) noexcept
Set the clock-tick provider function.
static getTickFcn_t getTick
Return the current tick used by the OS.
Definition clock.hpp:93
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 inst...
clock(clock &other)=delete
static const qOS::duration_t IMMEDIATE
To specify a non-wait time value.
Definition clock.hpp:124
static void sysTick(void) noexcept
Feed the system tick.
timeCount_t duration_t
The typedef that specified an time quantity, usually expressed in milliseconds.
Definition clock.hpp:18
clock_t(*)(void) getTickFcn_t
Pointer to a function that gets the current hardware tick value.
Definition clock.hpp:74
timeCount_t clock_t
A unsigned integer to hold ticks count. Epochs counter.
Definition clock.hpp:15
unsigned long timeCount_t
A type to instantiate a variable to hold a time count.
Definition types.hpp:130
OS/Kernel interfaces.
Definition bytebuffer.hpp:7