Get the time for the timer that is earliest in the queue.
| 135 | |
| 136 | // Get the time for the timer that is earliest in the queue. |
| 137 | virtual long wait_duration_usec(long max_duration) const |
| 138 | { |
| 139 | if (heap_.empty()) |
| 140 | return max_duration; |
| 141 | |
| 142 | return this->to_usec( |
| 143 | TimeTraits::to_posix_duration( |
| 144 | TimeTraits::subtract(heap_[0].time_, TimeTraits::now())), |
| 145 | max_duration); |
| 146 | } |
| 147 | |
| 148 | // Dequeue all timers not later than the current time. |
| 149 | virtual void get_ready_timers(op_queue<operation>& ops) |
nothing calls this directly
no test coverage detected