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

Method TimeToNextTransceive

src/cryptopp/network.cpp:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29double LimitedBandwidth::TimeToNextTransceive()
30{
31 if (!m_maxBytesPerSecond)
32 return 0;
33
34 if (!m_nextTransceiveTime)
35 ComputeNextTransceiveTime();
36
37 return SaturatingSubtract(m_nextTransceiveTime, m_timer.ElapsedTimeAsDouble());
38}
39
40void LimitedBandwidth::NoteTransceive(lword size)
41{

Callers

nothing calls this directly

Calls 2

SaturatingSubtractFunction · 0.85
ElapsedTimeAsDoubleMethod · 0.80

Tested by

no test coverage detected