Home | History | Annotate | Download | only in thread.timedmutex.class

Lines Matching defs:Clock

16 // template <class Clock, class Duration>
17 // bool try_lock_until(const chrono::time_point<Clock, Duration>& abs_time);
26 typedef std::chrono::steady_clock Clock;
27 typedef Clock::time_point time_point;
28 typedef Clock::duration duration;
34 time_point t0 = Clock::now();
35 assert(m.try_lock_until(Clock::now() + ms(300)) == true);
36 time_point t1 = Clock::now();
44 time_point t0 = Clock::now();
45 assert(m.try_lock_until(Clock::now() + ms(250)) == false);
46 time_point t1 = Clock::now();