| 27 | } |
| 28 | |
| 29 | double 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 | |
| 40 | void LimitedBandwidth::NoteTransceive(lword size) |
| 41 | { |
nothing calls this directly
no test coverage detected