BLPAPI C++  3.20.6
blpapi_highresolutionclock.h
Go to the documentation of this file.
1 /* Copyright 2012. Bloomberg Finance L.P.
2  *
3  * Permission is hereby granted, free of charge, to any person obtaining a copy
4  * of this software and associated documentation files (the "Software"), to
5  * deal in the Software without restriction, including without limitation the
6  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7  * sell copies of the Software, and to permit persons to whom the Software is
8  * furnished to do so, subject to the following conditions: The above
9  * copyright notice and this permission notice shall be included in all copies
10  * or substantial portions of the Software.
11  *
12  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
17  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
18  * IN THE SOFTWARE.
19  */
20 
28 #ifndef INCLUDED_BLPAPI_HIGHRESOLUTIONCLOCK
29 #define INCLUDED_BLPAPI_HIGHRESOLUTIONCLOCK
30 
58 #ifndef INCLUDED_BLPAPI_CALL
59 #include <blpapi_call.h>
60 #endif
61 
62 #ifndef INCLUDED_BLPAPI_DEFS
63 #include <blpapi_defs.h>
64 #endif
65 
66 #ifndef INCLUDED_BLPAPI_TIMEPOINT
67 #include <blpapi_timepoint.h>
68 #endif
69 
70 #ifndef INCLUDED_BLPAPI_TYPES
71 #include <blpapi_types.h>
72 #endif
73 
74 #ifdef __cplusplus
75 extern "C" {
76 #endif
77 
84 #ifdef __cplusplus
85 }
86 
94 namespace BloombergLP {
95 namespace blpapi {
96 
108 
109  static TimePoint now();
113 };
114 
118 // ============================================================================
119 // INLINE AND TEMPLATE FUNCTION IMPLEMENTATIONS
120 // ============================================================================
121 
122 // --------------------------
123 // struct HighResolutionClock
124 // --------------------------
126 {
127  TimePoint tp;
129  return tp;
130 }
131 
132 } // close namespace blpapi
133 } // close namespace BloombergLP
134 
135 #endif // #ifdef __cplusplus
136 #endif // #ifndef INCLUDED_BLPAPI_HIGHRESOLUTIONCLOCK
Definition: blpapi_timepoint.h:104
Common definitions used by the library.
Definition: blpapi_abstractsession.h:215
static TimePoint now()
Definition: blpapi_highresolutionclock.h:125
int blpapi_HighResolutionClock_now(blpapi_TimePoint_t *timePoint)
Provide a time point with respect to an epoch.
Definition: blpapi_highresolutionclock.h:107
#define BLPAPI_EXPORT
Definition: blpapi_defs.h:171
Provide functions for dispatchtbl.
#define BLPAPI_CALL_HIGHRESOLUTIONCLOCK_NOW(a1)
Definition: blpapi_call.h:463
Provide BLPAPI types.