BLPAPI C++  3.24.11
blpapi_timepoint.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_TIMEPOINT
29 #define INCLUDED_BLPAPI_TIMEPOINT
30 
68 #ifndef INCLUDED_BLPAPI_CALL
69 #include <blpapi_call.h>
70 #endif
71 
72 #ifndef INCLUDED_BLPAPI_DEFS
73 #include <blpapi_defs.h>
74 #endif
75 
76 #ifndef INCLUDED_BLPAPI_TYPES
77 #include <blpapi_types.h>
78 #endif
79 
105 
107 };
108 
110 
111 #ifdef __cplusplus
112 extern "C" {
113 #endif
114 
117  const blpapi_TimePoint_t *start, const blpapi_TimePoint_t *end);
124 #ifdef __cplusplus
125 }
126 
127 namespace BloombergLP {
128 namespace blpapi {
129 
130 // ================
131 // struct TimePoint
132 // ================
133 
135 
143 
144  static long long nanosecondsBetween(
145  const TimePoint& start, const TimePoint& end);
151 };
152 
156 // ============================================================================
157 // INLINE AND TEMPLATE FUNCTION IMPLEMENTATIONS
158 // ============================================================================
159 
160 // --------------------
161 // struct TimePointUtil
162 // --------------------
163 
165  const TimePoint& start, const TimePoint& end)
166 {
168 }
169 
170 } // close namespace blpapi
171 } // close namespace BloombergLP
172 
173 #endif // #ifdef __cplusplus
174 #endif // #ifndef INCLUDED_BLPAPI_TIMEPOINT
long long blpapi_TimePointUtil_nanosecondsBetween(const blpapi_TimePoint_t *start, const blpapi_TimePoint_t *end)
Definition: blpapi_timepoint.h:104
Common definitions used by the library.
Definition: blpapi_abstractsession.h:187
blpapi_Int64_t d_value
Definition: blpapi_timepoint.h:106
#define BLPAPI_CALL_TIMEPOINTUTIL_NANOSECONDSBETWEEN(a1, a2)
Definition: blpapi_call.h:461
static long long nanosecondsBetween(const TimePoint &start, const TimePoint &end)
Definition: blpapi_timepoint.h:164
Definition: blpapi_timepoint.h:142
long long blpapi_Int64_t
Definition: blpapi_types.h:69
#define BLPAPI_EXPORT
Definition: blpapi_defs.h:171
Provide functions for dispatchtbl.
Provide BLPAPI types.
blpapi_TimePoint_t TimePoint
Definition: blpapi_timepoint.h:134