23 #include <OnixS/SURF/MarketData/Export.h> 28 #if defined(__linux__) 29 # include <sys/time.h> 33 namespace OnixS {
namespace SURF {
namespace MarketData {
37 typedef unsigned __int64 AbsoluteHighResolutionTimeImpl;
39 typedef __int64 RelativeHighResolutionTimeImpl;
41 #elif defined(__linux__) 43 typedef timeval AbsoluteHighResolutionTimeImpl;
45 typedef struct Nothing
47 } RelativeHighResolutionTimeImpl;
51 # error High resolution time services are not defined for a given platform. 71 void fromAbsolute(
const AbsoluteHighResolutionTimeImpl&);
74 void toAbsolute(AbsoluteHighResolutionTimeImpl*)
const;
77 void fromString(
const std::string&);
80 std::string toString()
const;
102 bool isValid()
const;
108 std::string toString()
const;
141 AbsoluteHighResolutionTimeImpl asAbsolute;
142 RelativeHighResolutionTimeImpl asRelative;
153 return !(Invalid == kind_);
bool isValid() const
Indicates whether the instance is valid time.
Decimal operator-(Decimal)
unsigned int microseconds
std::ostream & operator<<(std::ostream &, const Decimal &)
long long HighResolutionTimeSpan
Miscellaneous time traits.