Main Page
Modules
Data Structures
Files
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.
Generated on Sat Dec 8 14:53:02 2007 for pico]OS by
1.5.4