MCPcopy Create free account
hub / github.com/cinder/Cinder / wait_duration_usec

Method wait_duration_usec

include/asio/detail/timer_queue.hpp:133–142  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

131
132 // Get the time for the timer that is earliest in the queue.
133 virtual long wait_duration_usec(long max_duration) const
134 {
135 if (heap_.empty())
136 return max_duration;
137
138 return this->to_usec(
139 Time_Traits::to_posix_duration(
140 Time_Traits::subtract(heap_[0].time_, Time_Traits::now())),
141 max_duration);
142 }
143
144 // Dequeue all timers not later than the current time.
145 virtual void get_ready_timers(op_queue<operation>& ops)

Callers

nothing calls this directly

Calls 3

to_usecMethod · 0.95
nowClass · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected