utc_gettime(3dts) — Subroutines
Name
utc_gettime - 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
utcSystem 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
0Indicates that the routine executed successfully.
-1Generic error that indicates the time service cannot be accessed.
Examples
See the sample program in the utc_binreltime(3dts) reference page.