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

Lines Matching refs:ms

27 typedef std::chrono::milliseconds ms;
33 assert(m.try_lock_for(ms(300)) == true);
36 ns d = t1 - t0 - ms(250);
37 assert(d < ms(50)); // within 50ms
43 assert(m.try_lock_for(ms(250)) == false);
45 ns d = t1 - t0 - ms(250);
46 assert(d < ms(50)); // within 50ms
54 std::this_thread::sleep_for(ms(250));
61 std::this_thread::sleep_for(ms(300));