get_now_ts

March 26, 2020 Contributors

Name

get_now_ts — Get the current time

Synopsis

#include "scheduler.h"

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

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

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

Return Values

The value returned is the epoch time in UTC measured in seconds.

Threading

It is legal to call this function from any thread.

See Also

get_now