STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
xtimec.h
Go to the documentation of this file.
1 /* xtimec.h -- header for high-resolution time functions */
2 #pragma once
3 #ifndef _THR_XTIMEC_H
4 #define _THR_XTIMEC_H
5 #ifndef RC_INVOKED
6 #include <thr/xthrcommon.h>
7 #include <time.h>
8 
9  #pragma pack(push,_CRT_PACKING)
10  #pragma warning(push,_STL_WARNING_LEVEL)
11  #pragma warning(disable: _STL_DISABLED_WARNINGS)
12  #pragma push_macro("new")
13  #undef new
14 
15 #ifdef __cplusplus
16 extern "C" { // C linkage
17 #endif /* __cplusplus */
18 
19 typedef struct xtime
20  { /* store time with nanosecond resolution */
22  long nsec;
23  } xtime;
24 
25 _CRTIMP2_PURE int __cdecl xtime_get(xtime*, int);
26 
27 _CRTIMP2_PURE long __cdecl _Xtime_diff_to_millis(const xtime *);
28 _CRTIMP2_PURE long __cdecl _Xtime_diff_to_millis2(const xtime*, const xtime *);
29 _CRTIMP2_PURE long long __cdecl _Xtime_get_ticks(void);
30 #define _XTIME_NSECS_PER_TICK 100
31 #define _XTIME_TICKS_PER_TIME_T (long long)10000000
32 
33 _CRTIMP2_PURE long long __cdecl _Query_perf_counter(void);
34 _CRTIMP2_PURE long long __cdecl _Query_perf_frequency(void);
35 
36 #ifdef __cplusplus
37 } // extern "C"
38 #endif
39  #pragma pop_macro("new")
40  #pragma warning(pop)
41  #pragma pack(pop)
42 #endif /* RC_INVOKED */
43 #endif /* _THR_XTIMEC_H */
44 
45 /*
46  * This file is derived from software bearing the following
47  * restrictions:
48  *
49  * (c) Copyright William E. Kempf 2001
50  *
51  * Permission to use, copy, modify, distribute and sell this
52  * software and its documentation for any purpose is hereby
53  * granted without fee, provided that the above copyright
54  * notice appear in all copies and that both that copyright
55  * notice and this permission notice appear in supporting
56  * documentation. William E. Kempf makes no representations
57  * about the suitability of this software for any purpose.
58  * It is provided "as is" without express or implied warranty.
59  */
60 
61 /*
62  * Copyright (c) by P.J. Plauger. All rights reserved.
63  * Consult your license regarding permissions and restrictions.
64 V6.50:0009 */
_CRTIMP2_PURE long long __cdecl _Xtime_get_ticks(void)
_CRTIMP2_PURE long long __cdecl _Query_perf_frequency(void)
_CRTIMP2_PURE long long __cdecl _Query_perf_counter(void)
__time64_t sec
Definition: xtimec.h:21
struct xtime xtime
_CRTIMP2_PURE long __cdecl _Xtime_diff_to_millis2(const xtime *, const xtime *)
Definition: xtimec.h:19
_CRTIMP2_PURE int __cdecl xtime_get(xtime *, int)
_CRTIMP2_PURE long __cdecl _Xtime_diff_to_millis(const xtime *)
__int64 __time64_t
Definition: corecrt.h:480
long nsec
Definition: xtimec.h:22
#define _CRTIMP2_PURE
Definition: yvals.h:527