OnixS C++ MTS Cash SDP Handler 1.7.0
API documentation
Loading...
Searching...
No Matches
HighResolutionTime Class Reference

Public Member Functions

 HighResolutionTime ()
 HighResolutionTime (UInt64)
 HighResolutionTime (const HighResolutionTimeFields &)
 HighResolutionTime (const HighResolutionTime &)
bool isValid () const
void getFields (HighResolutionTimeFields *fields) const
std::string toString () const
void setToNow ()
bool operator== (const HighResolutionTime &) const
bool operator!= (const HighResolutionTime &) const
HighResolutionTimeSpan operator- (const HighResolutionTime &) const
HighResolutionTimeoperator= (const HighResolutionTime &)

Static Public Member Functions

static HighResolutionTime now ()
static HighResolutionTime parse (const std::string &time)

Friends

struct TimestampHelpers

Detailed Description

Miscellaneous time traits.

Definition at line 92 of file Time.h.

Constructor & Destructor Documentation

◆ HighResolutionTime() [1/4]

Initializes as not valid.

◆ HighResolutionTime() [2/4]

Initializes from given number of milliseconds since Jan 1st, 1970, 00:00:00 GMT.

◆ HighResolutionTime() [3/4]

Initializes from the given set of time attributes.

◆ HighResolutionTime() [4/4]

Initializes from the other instance.

Member Function Documentation

◆ getFields()

void getFields ( HighResolutionTimeFields * fields) const

Extracts details like year, month, seconds, etc.

◆ isValid()

bool isValid ( ) const
inline

Indicates whether the instance is valid time.

Definition at line 177 of file Time.h.

◆ now()

HighResolutionTime now ( )
static

Returns current time.

◆ operator!=()

bool operator!= ( const HighResolutionTime & ) const

Compares two timestamps for inequality.

◆ operator-()

HighResolutionTimeSpan operator- ( const HighResolutionTime & ) const

Returns difference between two times in microseconds.

◆ operator=()

HighResolutionTime & operator= ( const HighResolutionTime & )

Reinitializes from the other instance.

◆ operator==()

bool operator== ( const HighResolutionTime & ) const

Compares two timestamps for equality.

◆ parse()

HighResolutionTime parse ( const std::string & time)
static

Returns time from its string presentation.

◆ setToNow()

void setToNow ( )

Updates to current time.

◆ toString()

std::string toString ( ) const

Returns canonical presentation of time.

◆ TimestampHelpers

friend struct TimestampHelpers
friend

Definition at line 152 of file Time.h.