zoslib
z/OS C/C++ Library
Loading...
Searching...
No Matches
Macros | Enumerations | Functions
time.h File Reference
#include "zos-macros.h"

Go to the source code of this file.

Macros

#define __XPLAT   1
 

Enumerations

enum  clockid_t { CLOCK_REALTIME , CLOCK_MONOTONIC , CLOCK_HIGHRES , CLOCK_THREAD_CPUTIME_ID }
 (__EDC_TARGET < 0x42050000) && defined(ZOSLIB_ENABLE_V2R5_FEATURES) More...
 

Functions

__Z_EXPORT int clock_gettime (clockid_t cld_id, struct timespec *tp)
 
__Z_EXPORT int __nanosleep (const struct timespec *, struct timespec *)
 
__Z_EXPORT int nanosleep (const struct timespec *, struct timespec *) __asm("__nanosleep")
 

Macro Definition Documentation

◆ __XPLAT

#define __XPLAT   1

Enumeration Type Documentation

◆ clockid_t

enum clockid_t

(__EDC_TARGET < 0x42050000) && defined(ZOSLIB_ENABLE_V2R5_FEATURES)

Enumerator
CLOCK_REALTIME 
CLOCK_MONOTONIC 
CLOCK_HIGHRES 
CLOCK_THREAD_CPUTIME_ID 

Function Documentation

◆ __nanosleep()

__Z_EXPORT int __nanosleep ( const struct timespec *  req,
struct timespec *  rem 
)

Suspends the execution of the calling thread until either at least the time specified in *req has elapsed, an event occurs, or a signal arrives.

Parameters
[in]reqstruct used to specify intervals of time with nanosecond precision
[out]remthe remaining time if the call is interrupted

◆ clock_gettime()

__Z_EXPORT int clock_gettime ( clockid_t  cld_id,
struct timespec *  tp 
)

◆ nanosleep()

__Z_EXPORT int nanosleep ( const struct timespec *  ,
struct timespec *   
)