#ifndef __TIMERS_LOADED #define __TIMERS_LOADED 1 /**************************************************************************** ** ** - Clock and timer functions ** ***************************************************************************** ** Header is nonstandard ***************************************************************************** ** ** Copyright 2000 Compaq Computer Corporation ** ** Compaq and the Compaq logo Registered in U.S. Patent and Trademark Office. ** ** Confidential computer software. Valid license from Compaq required for ** possession, use or copying. Consistent with FAR 12.211 and 12.212, ** Commercial Computer Software, Computer Software Documentation, and ** Technical Data for Commercial Items are licensed to the U.S. Government ** under vendor's standard commercial license. ** ****************************************************************************** */ #pragma __nostandard #include #ifdef __cplusplus extern "C" { #endif #include #if __INITIAL_POINTER_SIZE # pragma __pointer_size __save # pragma __pointer_size 64 #endif /* ** Constants for Functions */ #define TIMEOFDAY 1 /* time of day clock type */ /* ** Typedef */ #ifndef _TIMESPEC_T_ # define _TIMESPEC_T_ typedef struct timespec { unsigned long tv_sec; /* seconds */ long tv_nsec; /* nanoseconds */ } timespec_t; #endif /* ** Functions added in OpenVMS V7.0, Note, that getclock is UTC ** based so it is not visible if compiling in a local time based ** compatibility mode. */ #if __CRTL_VER >= 70000000 # if !defined _VMS_V6_SOURCE int getclock(int clock_type, struct timespec *tp); # endif #endif /* ** Restore the users pointer context */ #if __INITIAL_POINTER_SIZE # pragma __pointer_size __restore #endif #ifdef __cplusplus } #endif #pragma __standard #endif /* __TIMERS_LOADED */