Skip to main content


get_now_ts — Get the current time


#include "scheduler.h"

| **get_now_ts** ( | void); |   |

<var class="pdparam">void</var>;


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().

Return Values

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?