#ifndef __TIMERS_LOADED #define __TIMERS_LOADED 1 /**************************************************************************** ** ** - Clock and timer functions ** ***************************************************************************** ** Header is nonstandard ***************************************************************************** ** * ** HPE CONFIDENTIAL. This software is confidential proprietary software * ** licensed by Hewlett Packard Enterprise Development, LP, and is not * ** authorized to be used, duplicated or disclosed to anyone without the * ** prior written permission of HPE. * ** Copyright 2003 Hewlett Packard Enterprise Development, LP * ** * ** VMS SOFTWARE, INC. CONFIDENTIAL. This software is confidential * ** proprietary software licensed by VMS Software, Inc., and is not * ** authorized to be used, duplicated or disclosed to anyone without * ** the prior written permission of VMS Software, Inc. * ** Copyright 2022-2023 VMS Software, Inc. * ** * ***************************************************************************** */ #pragma __nostandard #include #ifdef __cplusplus extern "C" { #endif #include /* ** Save the users pointer context */ #if __INITIAL_POINTER_SIZE || defined(__clang__) # pragma __required_pointer_size __save # pragma __required_pointer_size 64 #endif /* ** Constants for Functions */ #define TIMEOFDAY 1 /* time of day clock type */ /* ** Typedef */ #ifndef _TIMESPEC_T_ # define _TIMESPEC_T_ # ifndef __TIMESPEC # define __TIMESPEC # if defined(__clang__) struct timespec { unsigned int tv_sec; /* seconds */ int tv_nsec; /* nanoseconds */ }; # else struct timespec { unsigned long tv_sec; /* seconds */ long tv_nsec; /* nanoseconds */ }; # endif # endif # ifndef __TIMESPEC_T # define __TIMESPEC_T typedef struct timespec timespec_t; # endif #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 || defined(__clang__) # pragma __required_pointer_size __restore #endif #ifdef __cplusplus } #endif #pragma __standard #endif /* __TIMERS_LOADED */