22 #if defined (__linux__) 27 #include "OnixS/Eurex/Trading/Export.h" 41 AbsoluteHighResolutionTimeImpl;
45 RelativeHighResolutionTimeImpl;
47 #elif defined (__linux__) 49 typedef timeval AbsoluteHighResolutionTimeImpl;
50 typedef struct Nothing {} RelativeHighResolutionTimeImpl;
53 #error High resolution time services are not defined for a given platform. 76 void fromAbsolute (
const AbsoluteHighResolutionTimeImpl&);
79 void toAbsolute (AbsoluteHighResolutionTimeImpl*)
const;
82 void fromString (
const std::string&);
85 std::string toString()
const;
107 bool isValid()
const;
113 std::string toString()
const;
137 friend struct TimestampHelpers;
141 #elif defined (__linux__) 146 enum ValueKind { Invalid, Absolute, Relative };
150 AbsoluteHighResolutionTimeImpl asAbsolute;
151 RelativeHighResolutionTimeImpl asRelative;
162 return ! (Invalid == kind_);
unsigned long long UInt64
Fields of HighResolutionTime.
long long HighResolutionTimeSpan
bool isValid() const
Indicates whether the instance is valid time.
Miscellaneous time traits.
std::ostream & operator<<(std::ostream &, const ConnectionStateChange &)
Make it printable to formatted C++ I/O streams.
AbsoluteHighResolutionTimeImpl Timestamp
Alias for raw timestamps.
unsigned int microseconds