OnixS C++ MTS Repo SDP Handler  1.3.2.8
API documentation
HighResolutionTime Class Reference

#include <Time.h>

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

Initializes as not valid.

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

Initializes from the given set of time attributes.

Initializes from the other instance.

Member Function Documentation

void getFields ( HighResolutionTimeFields fields) const

Extracts details like year, month, seconds, etc.

bool isValid ( ) const
inline

Indicates whether the instance is valid time.

Definition at line 177 of file Time.h.

static HighResolutionTime now ( )
static

Returns current time.

bool operator!= ( const HighResolutionTime ) const

Compares two timestamps for inequality.

HighResolutionTimeSpan operator- ( const HighResolutionTime ) const

Returns difference between two times in microseconds.

HighResolutionTime& operator= ( const HighResolutionTime )

Reinitializes from the other instance.

bool operator== ( const HighResolutionTime ) const

Compares two timestamps for equality.

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

Returns time from its string presentation.

void setToNow ( )

Updates to current time.

std::string toString ( ) const

Returns canonical presentation of time.

Friends And Related Function Documentation

friend struct TimestampHelpers
friend

Definition at line 152 of file Time.h.


The documentation for this class was generated from the following file: