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 is distributed subject to a Software License Agreement found
7 * in file LICENSE that is included with this distribution.
8 \*************************************************************************/
9 
10 /*
11  * Author: Jeff Hill
12  */
13 
14 #ifndef INC_osdTime_H
15 #define INC_osdTime_H
16 
17 /* MinGW only has a snippet time.h not protected against multiple inclusion */
18 #if defined(__struct_timespec_defined)
19 #define _TIMESPEC_DEFINED 1
20 #endif
21 
22 #if ! defined(_MINGW) || ! defined(_TIMESPEC_DEFINED)
23 # if _MSC_VER >= 1900
24 # include <time.h>
25 # else
26 
27 #define __struct_timespec_defined 1
28 #define _TIMESPEC_DEFINED 1
29 struct timespec {
30  time_t tv_sec; /* seconds since some epoch */
31  long tv_nsec; /* nanoseconds within the second */
32 };
33 
34 # endif /* _MSC_VER */
35 #endif /* ! defined(_MINGW) || ! defined(_TIMESPEC_DEFINED) */
36 
37 #endif /* ifndef INC_osdTime_H */
38 
time_t tv_sec
Definition: osdTime.h:22
long tv_nsec
Definition: osdTime.h:23
Defined by POSIX Real Time.
Definition: osdTime.h:21