Name
get_now_ts — Get the current time
Synopsis
#include "scheduler.h"
| **get_now_ts** (
| void)
; | |
Description
This function can be called from any thread. If it is called from a scheduler_thread, it will return the time from the current “ec_scheduler_inst” structure. If it is called from a non-scheduler thread, it will return the value returned by time()
.
The value returned is the epoch time in UTC measured in seconds.
It is legal to call this function from any thread.
See Also
Was this page helpful?