25 #include <OnixS/SgxTitan/MarketData/Itch/Bootstrap.h> 28 ONIXS_SGXTITAN_ITCH_NAMESPACE_BEGIN
64 TimeSpan (
int hours,
int minutes,
int seconds,
int nanoseconds = 0);
72 TimeSpan (
int days,
int hours,
int minutes,
int seconds,
int nanoseconds);
76 TimeSpan (
long long totalSeconds,
int nanoseconds);
82 long long totalSeconds()
const;
102 int milliseconds()
const;
106 int microseconds()
const;
110 int nanoseconds()
const;
135 void toString (std::string& str,
TimeSpanFormat format = TimeSpanFormats::SDHHMMSSnsec)
const;
139 std::string toString (
TimeSpanFormat format = TimeSpanFormats::SDHHMMSSnsec)
const;
142 static TimeSpan deserialize (
const std::string& str);
152 inline long long TimeSpan::totalSeconds()
const 157 inline int TimeSpan::nanoseconds()
const 166 toString (str, format);
171 ONIXS_SGXTITAN_ITCH_NAMESPACE_END
TimeSpanFormats::Enum TimeSpanFormat
Time span format.
bool operator>(const Price &left, const Price &right)
bool operator!=(const Price &left, const Price &right)
bool operator<(const Price &left, const Price &right)
bool operator==(const Price &left, const Price &right)
static const TimeSpan Zero
Time interval of zero length.