MCPcopy Create free account
hub / github.com/boostorg/asio / wait_duration_usec

Method wait_duration_usec

include/boost/asio/detail/timer_queue.hpp:137–146  ·  view source on GitHub ↗

Get the time for the timer that is earliest in the queue.

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 5

to_usecMethod · 0.95
to_posix_durationFunction · 0.85
subtractFunction · 0.85
nowFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected