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

Result< uint64_t > get_us () noexcept
 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()

Result< uint64_t > ove::time::get_us ( )
inlinenoexcept

Returns the current system time in microseconds.

Returns
On success, the timestamp in microseconds since boot. On failure, an unexpected Error.

◆ 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.