This is Unofficial EPICS BASE Doxygen Site
osdTime.h
Go to the documentation of this file.
1 /*************************************************************************\
2 * Copyright (c) 2002 The University of Chicago, as Operator of Argonne
3 * National Laboratory.
4 * Copyright (c) 2002 The Regents of the University of California, as
5 * Operator of Los Alamos National Laboratory.
6 * EPICS BASE Versions 3.13.7
7 * and higher are distributed subject to a Software License Agreement found
8 * in file LICENSE that is included with this distribution.
9 \*************************************************************************/
10 
11 /*
12  * Author: Jeff Hill
13  */
14 
15 #ifndef osdTimeh
16 #define osdTimeh
17 
18 #include <unistd.h>
19 
20 #if !defined(_POSIX_TIMERS) || _POSIX_TIMERS < 0
21  struct timespec {
22  time_t tv_sec; /* seconds since some epoch */
23  long tv_nsec; /* nanoseconds within the second */
24  };
25 #endif /* !_POSIX_TIMERS */
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif /* __cplusplus */
30 
31 LIBCOM_API void epicsStdCall
32  convertDoubleToWakeTime(double timeout,struct timespec *wakeTime);
33 
34 #ifdef __cplusplus
35 }
36 #endif /* __cplusplus */
37 
38 #endif /* ifndef osdTimeh */
39 
double timeout
Definition: pvutils.cpp:25
time_t tv_sec
Definition: osdTime.h:22
long tv_nsec
Definition: osdTime.h:23
LIBCOM_API void convertDoubleToWakeTime(double timeout, struct timespec *wakeTime)
Definition: osdTime.cpp:68
Defined by POSIX Real Time.
Definition: osdTime.h:21