#include <rtptimeutilities.h>
Public Member Functions | |
RTPTime (double t) | |
Creates an RTPTime instance representing t , which is expressed in units of seconds. | |
RTPTime (RTPNTPTime ntptime) | |
Creates an instance that corresponds to ntptime . | |
RTPTime (uint32_t seconds, uint32_t microseconds) | |
Creates an instance corresponding to seconds and microseconds . | |
uint32_t | GetSeconds () const |
Returns the number of seconds stored in this instance. | |
uint32_t | GetMicroSeconds () const |
Returns the number of microseconds stored in this instance. | |
double | GetDouble () const |
Returns the time stored in this instance, expressed in units of seconds. | |
RTPNTPTime | GetNTPTime () const |
Returns the NTP time corresponding to the time stored in this instance. | |
Static Public Member Functions | |
static RTPTime | CurrentTime () |
Returns an RTPTime instance representing the current wallclock time. | |
static void | Wait (const RTPTime &delay) |
This function waits the amount of time specified in delay . |
RTPTime::RTPTime | ( | double | t | ) | [inline] |
Referenced by CurrentTime().
RTPTime::RTPTime | ( | RTPNTPTime | ntptime | ) | [inline] |
Creates an instance that corresponds to ntptime
. If the conversion cannot be made, both the seconds and the microseconds are set to zero.
References RTPNTPTime::GetLSW(), and RTPNTPTime::GetMSW().
RTPTime::RTPTime | ( | uint32_t | seconds, | |
uint32_t | microseconds | |||
) | [inline] |
RTPTime RTPTime::CurrentTime | ( | ) | [inline, static] |
double RTPTime::GetDouble | ( | ) | const [inline] |
uint32_t RTPTime::GetMicroSeconds | ( | ) | const [inline] |
RTPNTPTime RTPTime::GetNTPTime | ( | ) | const [inline] |
uint32_t RTPTime::GetSeconds | ( | ) | const [inline] |
void RTPTime::Wait | ( | const RTPTime & | delay | ) | [inline, static] |