oveRTOS C++ API
C++20 RAII wrappers for the oveRTOS C API
Loading...
Searching...
No Matches
Functions
ove::time Namespace Reference

Thin C++ wrappers around the oveRTOS time and delay API. More...

Functions

int get_us (uint64_t *out)
 Returns the current system time in microseconds.
 
void delay_ms (uint32_t ms)
 Blocks the calling task for at least the specified number of milliseconds.
 
void delay_us (uint32_t us)
 Blocks the calling task for at least the specified number of microseconds.
 

Detailed Description

Thin C++ wrappers around the oveRTOS time and delay API.

Available when CONFIG_OVE_TIME is enabled.

Function Documentation

◆ get_us()

int ove::time::get_us ( uint64_t *  out)
inline

Returns the current system time in microseconds.

Parameters
[out]outPointer to a uint64_t that receives the timestamp.
Returns
OVE_OK on success, or a negative error code.

◆ delay_ms()

void ove::time::delay_ms ( uint32_t  ms)
inline

Blocks the calling task for at least the specified number of milliseconds.

Parameters
[in]msDelay duration in milliseconds.

◆ delay_us()

void ove::time::delay_us ( uint32_t  us)
inline

Blocks the calling task for at least the specified number of microseconds.

Parameters
[in]usDelay duration in microseconds.