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

Method GetCurTimeAndCleanUp

src/cryptopp/network.cpp:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60double LimitedBandwidth::GetCurTimeAndCleanUp()
61{
62 if (!m_maxBytesPerSecond)
63 return 0;
64
65 double curTime = m_timer.ElapsedTimeAsDouble();
66 while (m_ops.size() && (m_ops.front().first + 1000 < curTime))
67 m_ops.pop_front();
68 return curTime;
69}
70
71void LimitedBandwidth::GetWaitObjects(WaitObjectContainer &container, const CallStack &callStack)
72{

Callers

nothing calls this directly

Calls 2

ElapsedTimeAsDoubleMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected