| 58 | } |
| 59 | |
| 60 | double 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 | |
| 71 | void LimitedBandwidth::GetWaitObjects(WaitObjectContainer &container, const CallStack &callStack) |
| 72 | { |
nothing calls this directly
no test coverage detected