Embed: (wiki syntax)

« Back to documentation index

rtos::Kernel Namespace Reference

rtos::Kernel Namespace Reference
[Rtos]

Functions in the Kernel namespace control RTOS kernel information. More...

Functions

uint64_t get_ms_count ()
 Read the current RTOS kernel millisecond tick count.

Detailed Description

Functions in the Kernel namespace control RTOS kernel information.


Function Documentation

uint64_t get_ms_count (  )

Read the current RTOS kernel millisecond tick count.

The tick count corresponds to the tick count used by the RTOS for timing purposes. It increments monotonically from 0 at boot, hence effectively never wraps. If the underlying RTOS only provides a 32-bit tick count, this method expands it to 64 bits.

Returns:
RTOS kernel current tick count
Note:
mbed OS always uses millisecond RTOS ticks, and this could only wrap after half a billion years
You cannot call this function from ISR context.

Definition at line 29 of file Kernel.cpp.