Lines Matching refs:ms
27 typedef std::chrono::milliseconds ms;
33 assert(m.try_lock_until(Clock::now() + ms(300)) == true);
36 ns d = t1 - t0 - ms(250);
37 assert(d < ms(50)); // within 50ms
43 assert(m.try_lock_until(Clock::now() + 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));