Get the time for the timer that is earliest in the queue.
| 123 | |
| 124 | // Get the time for the timer that is earliest in the queue. |
| 125 | virtual long wait_duration_msec(long max_duration) const |
| 126 | { |
| 127 | if (heap_.empty()) |
| 128 | return max_duration; |
| 129 | |
| 130 | return this->to_msec( |
| 131 | TimeTraits::to_posix_duration( |
| 132 | TimeTraits::subtract(heap_[0].time_, TimeTraits::now())), |
| 133 | max_duration); |
| 134 | } |
| 135 | |
| 136 | // Get the time for the timer that is earliest in the queue. |
| 137 | virtual long wait_duration_usec(long max_duration) const |
nothing calls this directly
no test coverage detected