Name
cyg_clock_get_systime() — Retrieve the current system time
Synopsis
#include <cyg/clock/api.h>
Cyg_ErrNo cyg_clock_get_systime(
struct timespec *ts)
;
Description
Retrieves the current system time as a struct
timespec and stores it
in ts
. This time is represented as a UTC
offset from the Epoch, defined as 1970-01-01 00:00:00 UTC for
consistency with POSIX.
Return value
This function returns a standard error code, as defined in
<errno.h>
, or
ENOERR on success.
2024-03-18 | Open Publication License |