BLPAPI C++ 3.26.5
Loading...
Searching...
No Matches
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
35
36#ifndef INCLUDED_BLPAPI_TIMEPOINT
37#define INCLUDED_BLPAPI_TIMEPOINT
75
76#ifndef INCLUDED_BLPAPI_CALL
77#include <blpapi_call.h>
78#endif
79
80#ifndef INCLUDED_BLPAPI_DEFS
81#include <blpapi_defs.h>
82#endif
83
84#ifndef INCLUDED_BLPAPI_TYPES
85#include <blpapi_types.h>
86#endif
87
89
113struct blpapi_TimePoint {
114
115 blpapi_Int64_t d_value;
116};
117
118typedef struct blpapi_TimePoint blpapi_TimePoint_t;
119
120#ifdef __cplusplus
121extern "C" {
122#endif
123
124BLPAPI_EXPORT
125long long blpapi_TimePointUtil_nanosecondsBetween(
126 const blpapi_TimePoint_t *start, const blpapi_TimePoint_t *end);
132
136
137#ifdef __cplusplus
138}
139
140namespace BloombergLP {
141namespace blpapi {
142
143// ================
144// struct TimePoint
145// ================
146
147typedef blpapi_TimePoint_t TimePoint;
148
156
157 static long long nanosecondsBetween(
158 const TimePoint& start, const TimePoint& end);
164};
165
168
169// ============================================================================
170// INLINE AND TEMPLATE FUNCTION IMPLEMENTATIONS
171// ============================================================================
172
173// --------------------
174// struct TimePointUtil
175// --------------------
176
178 const TimePoint& start, const TimePoint& end)
179{
181}
182
183} // close namespace blpapi
184} // close namespace BloombergLP
185
186#endif // #ifdef __cplusplus
187#endif // #ifndef INCLUDED_BLPAPI_TIMEPOINT
Provide functions for dispatchtbl.
#define BLPAPI_CALL_TIMEPOINTUTIL_NANOSECONDSBETWEEN(a1, a2)
Definition blpapi_call.h:469
Common definitions used by the library.
Provide BLPAPI types.
Definition blpapi_abstractsession.h:212
blpapi_TimePoint_t TimePoint
Definition blpapi_timepoint.h:147
Definition blpapi_abstractsession.h:211
Definition blpapi_timepoint.h:155
static long long nanosecondsBetween(const TimePoint &start, const TimePoint &end)
Definition blpapi_timepoint.h:177