• Home
  • Raw
  • Download

Lines Matching refs:ms

22 typedef std::chrono::milliseconds ms;  typedef
49 ns d = t1 - t0 - ms(250); in fn3()
50 BOOST_CHECK(d < ns(2500000)+ms(2000)); // within 2.5 ms in fn3()
58 ns d = t1 - t0 - ms(250); in fn4()
59 BOOST_CHECK(d < ns(50000000)+ms(2000)); // within 50 ms in fn4()
64 BOOST_CHECK( m.try_lock_for(ms(300)+ms(2000)) == true); in fn5()
67 ns d = t1 - t0 - ms(250); in fn5()
68 BOOST_CHECK(d < ns(5000000)+ms(2000)); // within 5 ms in fn5()
73 BOOST_CHECK(m.try_lock_for(ms(250)) == false); in fn6()
75 ns d = t1 - t0 - ms(250); in fn6()
76 BOOST_CHECK(d < ns(5000000)+ms(2000)); // within 5 ms in fn6()
81 BOOST_CHECK(m.try_lock_until(std::chrono::steady_clock::now() + ms(300) + ms(1000)) == true); in fn7()
84 ns d = t1 - t0 - ms(250); in fn7()
85 BOOST_CHECK(d < ns(5000000)+ms(2000)); // within 5ms in fn7()
90 BOOST_CHECK(m.try_lock_until(std::chrono::steady_clock::now() + ms(250)) == false); in fn8()
92 ns d = t1 - t0 - ms(250); in fn8()
93 ns r = ns(5000000)+ms(2000); // within 6ms in fn8()
104 ns d = t1 - t0 - ms(250); in fn9()
105 BOOST_CHECK(d < ms(2500)+ms(2000)); // within 2.5 ms in fn9()
115 ns d = t1 - t0 - ms(250); in fn10()
116 BOOST_CHECK(d < ns(50000000)+ms(2000)); // within 50 ms in fn10()
121 BOOST_CHECK(m.try_lock_for(ms(300)+ms(1000)) == true); in fn11()
126 ns d = t1 - t0 - ms(250); in fn11()
127 BOOST_CHECK(d < ns(5000000)+ms(2000)); // within 5 ms in fn11()
132 BOOST_CHECK(m.try_lock_for(ms(250)) == false); in fn12()
134 ns d = t1 - t0 - ms(250); in fn12()
135 BOOST_CHECK(d < ms(5000)+ms(2000)); // within 5 ms in fn12()
140 BOOST_CHECK(m.try_lock_until(std::chrono::steady_clock::now() + ms(300) + ms(1000)) == true); in fn13()
143 ns d = t1 - t0 - ms(250); in fn13()
144 BOOST_CHECK(d < ns(5000000)+ms(2000)); // within 5 ms in fn13()
149 BOOST_CHECK(m.try_lock_until(std::chrono::steady_clock::now() + ms(250)) == false); in fn14()
151 ns d = t1 - t0 - ms(250); in fn14()
152 BOOST_CHECK(d < ns(5000000)+ms(2000)); // within 5 ms in fn14()
162 ns d = t1 - t0 - ms(250); in fn15()
163 BOOST_CHECK(d < ns(2500000)+ms(2000)); // within 2.5 ms in fn15()
173 ns d = t1 - t0 - ms(250); in fn16()
174 BOOST_CHECK(d < ns(50000000)+ms(2000)); // within 50 ms in fn16()
182 ns d = t1 - t0 - ms(250); in fn17()
183 BOOST_CHECK(d < ns(2500000)+ms(2000)); // within 2.5 ms in fn17()
191 ns d = t1 - t0 - ms(250); in fn18()
192 BOOST_CHECK(d < ns(50000000)+ms(2000)); // within 50 ms in fn18()
263 boost::this_fiber::sleep_for( ms(250) ); in do_test_mutex()
272 boost::this_fiber::sleep_for( ms(250) ); in do_test_mutex()
291 boost::this_fiber::sleep_for( ms(250) ); in do_test_recursive_mutex()
300 boost::this_fiber::sleep_for( ms(250) ); in do_test_recursive_mutex()
318 boost::this_fiber::sleep_for( ms(250) ); in do_test_timed_mutex()
327 boost::this_fiber::sleep_for( ms(250) ); in do_test_timed_mutex()
336 boost::this_fiber::sleep_for( ms(250) ); in do_test_timed_mutex()
345 boost::this_fiber::sleep_for( ms(300) ); in do_test_timed_mutex()
354 boost::this_fiber::sleep_for( ms(250) ); in do_test_timed_mutex()
363 boost::this_fiber::sleep_for( ms(300) + ms(1000) ); in do_test_timed_mutex()
382 boost::this_fiber::sleep_for( ms(250) ); in do_test_recursive_timed_mutex()
391 boost::this_fiber::sleep_for( ms(250) ); in do_test_recursive_timed_mutex()
400 boost::this_fiber::sleep_for( ms(250) ); in do_test_recursive_timed_mutex()
409 boost::this_fiber::sleep_for( ms(400) ); in do_test_recursive_timed_mutex()
418 boost::this_fiber::sleep_for( ms(250) ); in do_test_recursive_timed_mutex()
427 boost::this_fiber::sleep_for( ms(300) ); in do_test_recursive_timed_mutex()