msys.core.get_now_ts

March 26, 2020 Contributors

Name

msys.core.get_now_ts — Get the current time

Synopsis

msys.core.get_now_ts();

Description

If this function 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.

Because this function is in the msys.core namespace, an explicit require('msys.core') is not necessary.