|
jrtplib
3.7.1
|
This class is used to specify wallclock time, delay intervals etc. More...
#include <rtptimeutilities.h>
Public Member Functions | |
| RTPTime (double t) | |
Creates an RTPTime instance representing t, which is expressed in units of seconds. More... | |
| RTPTime (RTPNTPTime ntptime) | |
Creates an instance that corresponds to ntptime. More... | |
| RTPTime (uint32_t seconds, uint32_t microseconds) | |
Creates an instance corresponding to seconds and microseconds. More... | |
| uint32_t | GetSeconds () const |
| Returns the number of seconds stored in this instance. More... | |
| uint32_t | GetMicroSeconds () const |
| Returns the number of microseconds stored in this instance. More... | |
| double | GetDouble () const |
| Returns the time stored in this instance, expressed in units of seconds. More... | |
| RTPNTPTime | GetNTPTime () const |
| Returns the NTP time corresponding to the time stored in this instance. More... | |
Static Public Member Functions | |
| static RTPTime | CurrentTime () |
| Returns an RTPTime instance representing the current wallclock time. More... | |
| static void | Wait (const RTPTime &delay) |
This function waits the amount of time specified in delay. More... | |
This class is used to specify wallclock time, delay intervals etc. It stores a number of seconds and a number of microseconds.
|
inline |
|
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 CurrentTime(), RTPNTPTime::GetLSW(), GetMicroSeconds(), RTPNTPTime::GetMSW(), GetSeconds(), and Wait().
|
inline |
|
inlinestatic |
|
inline |
|
inline |
Referenced by RTPTime().
|
inline |
References RTPNTPTime::RTPNTPTime().
|
inline |
Referenced by RTPTime().
1.8.11