MCPcopy Create free account
hub / github.com/LUX-Core/lux / ElapsedTimeAsDouble

Method ElapsedTimeAsDouble

src/cryptopp/hrtimer.cpp:66–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66double TimerBase::ElapsedTimeAsDouble()
67{
68 if (m_stuckAtZero)
69 return 0;
70
71 if (m_started)
72 {
73 TimerWord now = GetCurrentTimerValue();
74 if (m_last < now) // protect against OS bugs where time goes backwards
75 m_last = now;
76 return ConvertTo(m_last - m_start, m_timerUnit);
77 }
78
79 StartTimer();
80 return 0;
81}
82
83unsigned long TimerBase::ElapsedTime()
84{

Callers 5

ScheduleEventMethod · 0.80
WaitMethod · 0.80
DeriveKeyMethod · 0.80
TimeToNextTransceiveMethod · 0.80
GetCurTimeAndCleanUpMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected