![]() |
SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <rtptimeutilities.h>
Public Member Functions | |
| RTPTime (double t) | |
| RTPTime (RTPNTPTime ntptime) | |
| RTPTime (int64_t seconds, uint32_t microseconds) | |
| int64_t | GetSeconds () const |
| uint32_t | GetMicroSeconds () const |
| double | GetDouble () const |
| RTPNTPTime | GetNTPTime () const |
| RTPTime & | operator-= (const RTPTime &t) |
| RTPTime & | operator+= (const RTPTime &t) |
| bool | operator< (const RTPTime &t) const |
| bool | operator> (const RTPTime &t) const |
| bool | operator<= (const RTPTime &t) const |
| bool | operator>= (const RTPTime &t) const |
| bool | IsZero () const |
Static Public Member Functions | |
| static RTPTime | CurrentTime () |
| static void | Wait (const RTPTime &delay) |
Private Attributes | |
| double | m_t |
This class is used to specify wallclock time, delay intervals etc. This class is used to specify wallclock time, delay intervals etc. It stores a number of seconds and a number of microseconds.
Definition at line 103 of file rtptimeutilities.h.
|
inline |
Creates an RTPTime instance representing t, which is expressed in units of seconds.
Definition at line 162 of file rtptimeutilities.h.
|
inline |
Creates an instance that corresponds to ntptime. Creates an instance that corresponds to ntptime. If the conversion cannot be made, both the seconds and the microseconds are set to zero.
Definition at line 182 of file rtptimeutilities.h.
References qrtplib::RTPNTPTime::GetLSW(), qrtplib::RTPNTPTime::GetMSW(), and RTP_NTPTIMEOFFSET.
Here is the call graph for this function:Creates an instance corresponding to seconds and microseconds.
Definition at line 167 of file rtptimeutilities.h.
|
inlinestatic |
Returns an RTPTime instance representing the current wallclock time. Returns an RTPTime instance representing the current wallclock time. This is expressed as a number of seconds since 00:00:00 UTC, January 1, 1970.
Definition at line 293 of file rtptimeutilities.h.
References qrtplib::RTPTime_timespecToDouble().
Referenced by qrtplib::RTCPPacketBuilder::BuildBYEPacket(), qrtplib::RTCPPacketBuilder::BuildNextPacket(), qrtplib::RTPSession::BYEDestroy(), qrtplib::RTCPScheduler::CalculateNextRTCPTime(), GetMicroSeconds(), qrtplib::RTCPScheduler::GetTransmissionDelay(), qrtplib::RTCPScheduler::IsTime(), qrtplib::RTCPScheduler::PerformReverseReconsideration(), qrtplib::RTPPacketBuilder::PrivateBuildPacket(), qrtplib::RTPSession::ProcessPolledData(), qrtplib::RTPUDPTransmitter::readRTCPPendingDatagrams(), qrtplib::RTPUDPTransmitter::readRTPPendingDatagrams(), qrtplib::RTCPScheduler::ScheduleBYEPacket(), and qrtplib::RTPInternalSourceData::SentRTPPacket().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Returns the time stored in this instance, expressed in units of seconds.
Definition at line 135 of file rtptimeutilities.h.
Referenced by qrtplib::RTCPPacketBuilder::BuildBYEPacket(), qrtplib::RTCPPacketBuilder::BuildNextPacket(), qrtplib::RTCPScheduler::CalculateBYETransmissionInterval(), qrtplib::RTCPScheduler::CalculateDeterministicInterval(), qrtplib::RTCPScheduler::CalculateTransmissionInterval(), qrtplib::RTCPPacketBuilder::FillInReportBlocks(), qrtplib::RTPSourceData::INF_GetEstimatedTimestampUnit(), qrtplib::RTCPScheduler::PerformReverseReconsideration(), qrtplib::RTPSourceStats::ProcessPacket(), qrtplib::RTPSession::ProcessPolledData(), and qrtplib::RTCPSchedulerParams::SetMinimumTransmissionInterval().
Here is the caller graph for this function:
|
inline |
Returns the number of microseconds stored in this instance.
Definition at line 206 of file rtptimeutilities.h.
References C1000000, CEPOCH, CurrentTime(), m_t, and Wait().
Here is the call graph for this function:
|
inline |
Returns the NTP time corresponding to the time stored in this instance.
Definition at line 367 of file rtptimeutilities.h.
References RTP_NTPTIMEOFFSET.
Referenced by qrtplib::RTCPPacketBuilder::BuildBYEPacket(), qrtplib::RTCPPacketBuilder::BuildNextPacket(), and qrtplib::RTPSourceData::INF_GetRoundtripTime().
Here is the caller graph for this function:
|
inline |
Returns the number of seconds stored in this instance.
Definition at line 201 of file rtptimeutilities.h.
|
inline |
Definition at line 150 of file rtptimeutilities.h.
Referenced by qrtplib::RTPSourceData::INF_GetEstimatedTimestampUnit().
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
This function waits the amount of time specified in delay.
Definition at line 333 of file rtptimeutilities.h.
References m_t.
Referenced by qrtplib::RTPSession::BYEDestroy(), and GetMicroSeconds().
Here is the caller graph for this function:
|
private |
Definition at line 159 of file rtptimeutilities.h.
Referenced by GetMicroSeconds(), operator+=(), operator-=(), operator<(), operator<=(), operator>(), operator>=(), and Wait().
1.8.13