SC_GET_GLOBAL_TIME(3) | SC_GET_GLOBAL_TIME(3) |
#include <sc.h>
double get_global_time( void );
sc_get_global_time()
returns a global clock value in
seconds. However, its origin is undefined. It is the users'
responsibility to call sc_gclock_ready
(2) before calling
get_global_time
to check if the
global clock is available, and if the global clock is already
compensated.
The global clock value is consistent with the another node's global
clock value. However, the value is NOT consistent with the clock value
provided by the local operatin system, such as
gettimeofday
(2).
sc_get_global_time
does not return any error status. If
current SCore-D does not support global clock, then it returns 0.0.
sc_gclock_ready
(2),
pmGetTime
(3)