SC_GET_GLOBAL_TIME(3)
SCORED LIBRARY (C)
SC_GET_GLOBAL_TIME(3)
NAME
sc_get_global_time - get a global clock value

SYNOPSIS
#include <sc.h>
double get_global_time( void );

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

RETURN VALUES
Unlike the other SCore-D library functions, sc_get_global_time does not return any error status. If current SCore-D does not support global clock, then it returns 0.0.

SEE ALSO
sc_gclock_ready(2), pmGetTime(3)

$Id: sc_get_global_time.html,v 1.2 2002/02/27 12:39:35 liu Exp $