@CHIP-RTOS C Library - RTOS API
Get number of seconds elapsed since 00:00:00 January 1 1970
time_t RTX_time(time_t *ptr);
- Output parameter, pointer to time_t (see standard library)
variable that will receive the timestamp
- Number of seconds elapsed since 00:00:00 January 1 1970
- This function is faster than the standard library's time function and
even the RTX_Get_TimeDate
function, because it avoids several conversions of the timestamp.
This function requires around 30 microseconds execution time, assuming
that no interrupts were serviced in the meantime.
This API may be called from within any form of Interrupt Service
routine, although due to its rather long execution time this may not be
a good idea.
Inside this API the interrupts are masked for short periods of time and
then restored to the their masking state on entry.
- This library function invokes a RTOS software interrupt
to install a dynamic link into the RTOS.
Refer to this RTOS API function's
for more details.
- RTX API Overview
Supported since or modified in @CHIP-RTOS version
Supported by @CHIP-RTOS C Library since version
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document