NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES | SEE ALSO
#include <exec/chTime.h>int sysTime(KnTimeVal * time);
SYSTIME
long tmSec ; /* seconds */ long tmNSec ; /* nanoseconds */
The tmSec field represents the number of seconds, and the tmNSec field represents the number of additional nanoseconds.
This time is set to 0 when the kernel is initialized, and incremented by the timer period at each timer interrupt.
sysTime allows the user to get the value of the kernel time. sysTime returns the kernel time in the KnTimeVal structure pointed to by time.
sysTimeGetRes obtains the resolution of the sysTime system call. The time value returned in resolution represents the smallest possible difference between two distinct values of the system time.
Upon successful completion K_OK is returned. Otherwise, a negative error code is returned.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES | SEE ALSO