pico]OS  1.0.4
Functions
CPU Usage Calculation
User API: Nano Layer

Functions

UVAR_t POSCALL nosCpuUsage (void)

Detailed Description

The nano layer features CPU usage measurement. If this feature is enabled, the system start is delayed for approximately one second that is needed to calibrate the idle loop counter. The CPU usage statistics is updated one time per second.


Function Documentation

UVAR_t POSCALL nosCpuUsage ( void  )

Calculate and return the percentage of CPU usage.

Returns:
percentage of CPU usage (0 ... 100 %%)
Note:
NOSCFG_FEATURE_CPUUSAGE must be defined to 1 to have this function compiled in.