dxFeed Graal CXX API v4.0.0
|
Value class for period of time with support for ISO8601 duration format. More...
#include <TimePeriod.hpp>
Public Member Functions | |
std::int64_t | getTime () const |
Returns value in milliseconds. | |
std::int32_t | getSeconds () const |
Returns value in seconds. | |
std::int64_t | getNanos () const |
Returns value in nanoseconds. | |
Static Public Member Functions | |
static TimePeriod | valueOf (std::int64_t value) |
Returns TimePeriod with value milliseconds. | |
static TimePeriod | valueOf (std::chrono::milliseconds value) |
Returns TimePeriod with value milliseconds. | |
static TimePeriod | valueOf (const StringLikeWrapper &value) |
Returns TimePeriod represented with a given string. | |
Static Public Attributes | |
static const TimePeriod | ZERO |
Time-period of zero. | |
static const TimePeriod | UNLIMITED |
Time-period of "infinity" (time of std::numeric_limits<std::int64_t>::max() or LLONG_MAX ). | |
Value class for period of time with support for ISO8601 duration format.
std::int64_t TimePeriod::getNanos | ( | ) | const |
Returns value in nanoseconds.
std::int32_t TimePeriod::getSeconds | ( | ) | const |
Returns value in seconds.
std::int64_t TimePeriod::getTime | ( | ) | const |
Returns value in milliseconds.
|
static |
Returns TimePeriod represented with a given string.
Allowable format is ISO8601 duration, but there are some simplifications and modifications available:
value | The string representation |
|
inlinestatic |
Returns TimePeriod with value
milliseconds.
value | value in milliseconds |
value
milliseconds.
|
static |
Returns TimePeriod with value
milliseconds.
value | value in milliseconds |
value
milliseconds. Referenced by DXFeedSubscription::setAggregationPeriod().