RTOS Wrapper
API reference
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
RtosTime Class Reference

#include <RtosMutex.h>

Static Public Member Functions

static uint64_t GetCurrentTimeUs () noexcept
 Get current time in microseconds.
 
static uint32_t MsToTicks (uint32_t ms) noexcept
 Convert milliseconds to RTOS ticks.
 

Member Function Documentation

◆ GetCurrentTimeUs()

static uint64_t RtosTime::GetCurrentTimeUs ( )
inlinestaticnoexcept

Get current time in microseconds.

Returns
Current time in microseconds from the RTOS tick counter.

◆ MsToTicks()

static uint32_t RtosTime::MsToTicks ( uint32_t  ms)
inlinestaticnoexcept

Convert milliseconds to RTOS ticks.

Parameters
msTime in milliseconds.
Returns
Equivalent tick count (minimum 1 tick for non-zero ms).

The documentation for this class was generated from the following file: