utc_gettime(3dts)
Returns the current system time and inaccuracy as a binary timestamp
Synopsis
#include <dce/utc.h> int utc_gettime( utc_t *utc);
Parameters
Input
None.
Output
utc System time as a binary timestamp.
Description The utc_gettime( ) routine returns the current system time and inaccuracy in a binary timestamp. The routine takes the TDF from the operating system's
kernel; the TDF is specified in a system-dependent manner.
Return Values ~0 Indicates that the routine executed successfully.
1 Generic error that indicates the time service cannot be accessed.
Examples See the sample program in the utc_binreltime(3dts) reference page.
|