Lines Matching refs:ms
30 typedef std::chrono::milliseconds ms;
36 assert(m.try_lock_shared_for(ms(300)) == true);
39 ns d = t1 - t0 - ms(250);
40 assert(d < ms(50)); // within 50ms
46 assert(m.try_lock_shared_for(ms(250)) == false);
48 ns d = t1 - t0 - ms(250);
49 assert(d < ms(50)); // within 50ms
62 std::this_thread::sleep_for(ms(250));
72 std::this_thread::sleep_for(ms(300));