BLPAPI C++ 3.26.6
Loading...
Searching...
No Matches
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
37
38#ifndef INCLUDED_BLPAPI_HIGHRESOLUTIONCLOCK
39#define INCLUDED_BLPAPI_HIGHRESOLUTIONCLOCK
66
67#ifndef INCLUDED_BLPAPI_CALL
68#include <blpapi_call.h>
69#endif
70
71#ifndef INCLUDED_BLPAPI_DEFS
72#include <blpapi_defs.h>
73#endif
74
75#ifndef INCLUDED_BLPAPI_TIMEPOINT
76#include <blpapi_timepoint.h>
77#endif
78
79#ifndef INCLUDED_BLPAPI_TYPES
80#include <blpapi_types.h>
81#endif
82
83#ifdef __cplusplus
84extern "C" {
85#endif
86
90
92
105BLPAPI_EXPORT
106int blpapi_HighResolutionClock_now(blpapi_TimePoint_t *timePoint);
108
110
111#ifdef __cplusplus
112}
113
114namespace BloombergLP {
115namespace blpapi {
122
134
135 static TimePoint now();
139};
140
143
144// ============================================================================
145// INLINE AND TEMPLATE FUNCTION IMPLEMENTATIONS
146// ============================================================================
147
148// --------------------------
149// struct HighResolutionClock
150// --------------------------
152{
153 TimePoint tp;
154 BLPAPI_CALL_HIGHRESOLUTIONCLOCK_NOW(&tp);
155 return tp;
156}
157
158} // close namespace blpapi
159} // close namespace BloombergLP
160
161#endif // #ifdef __cplusplus
162#endif // #ifndef INCLUDED_BLPAPI_HIGHRESOLUTIONCLOCK
Provide functions for dispatchtbl.
Common definitions used by the library.
Provide a time point with respect to an epoch.
Provide BLPAPI types.
blpapi_TimePoint_t TimePoint
Time point type alias.
Definition blpapi_timepoint.h:162
Definition blpapi_abstractsession.h:452
Definition blpapi_abstractsession.h:451
Definition blpapi_highresolutionclock.h:133
static TimePoint now()
Definition blpapi_highresolutionclock.h:151