kernel_time. STMicroelectronics OS20
Advertisement
Advertisement
16.2 OS20 function descriptions 16 Alphabetical list of functions
kernel_time
Return the kernel up-time
Synopsis
#include <kernel.h> clock_t kernel_time( void );
Arguments
None
Results
Returns a clock value indicating how long has elapsed since the kernel started executing, or 0 if the kernel has not been built with time-logging enabled.
Errors
None
Description kernel_time() returns the kernel up-time, a clock value indicating the elapsed time the kernel has been running; that is the total time spent executing code or in idle state.
The kernel up-time is the time from when the kernel was successfully started to the time when the kernel_time() call is made.
Callable from kernel_time() can only be called from a task.
See also
189
ADCS 7473749D
Download
Advertisement