Home
last modified time | relevance | path

Searched refs:steady_clock (Results 1 – 25 of 253) sorted by relevance

1234567891011

/third_party/boost/libs/thread/test/
Dtest_shared_mutex_timed_locks_chrono.cpp35 boost::chrono::steady_clock::time_point const start=boost::chrono::steady_clock::now(); in BOOST_AUTO_TEST_CASE()
36 boost::chrono::steady_clock::time_point const timeout=start+boost::chrono::milliseconds(500); in BOOST_AUTO_TEST_CASE()
39 BOOST_CHECK((timeout-timeout_resolution)<boost::chrono::steady_clock::now()); in BOOST_AUTO_TEST_CASE()
47 …boost::chrono::steady_clock::time_point const timeout2=boost::chrono::steady_clock::now()+wait_dur… in BOOST_AUTO_TEST_CASE()
49 BOOST_CHECK((timeout2-timeout_resolution)<boost::chrono::steady_clock::now()); in BOOST_AUTO_TEST_CASE()
66 boost::chrono::steady_clock::time_point const start=boost::chrono::steady_clock::now(); in BOOST_AUTO_TEST_CASE()
67 boost::chrono::steady_clock::time_point const timeout=start+boost::chrono::milliseconds(500); in BOOST_AUTO_TEST_CASE()
69 BOOST_CHECK(boost::chrono::steady_clock::now()<timeout); in BOOST_AUTO_TEST_CASE()
77 …boost::chrono::steady_clock::time_point const timeout2=boost::chrono::steady_clock::now()+wait_dur… in BOOST_AUTO_TEST_CASE()
79 BOOST_CHECK(boost::chrono::steady_clock::now()<timeout2); in BOOST_AUTO_TEST_CASE()
[all …]
Dtest_scheduled_tp.cpp34 void func(steady_clock::time_point pushed, steady_clock::duration dur) in func()
36 BOOST_TEST(pushed + dur < steady_clock::now()); in func()
38 void func2(scheduled_tp* tp, steady_clock::duration d) in func2()
40 boost::function<void()> fn = boost::bind(func,steady_clock::now(),d); in func2()
64 steady_clock::duration d = milliseconds(i*100); in test_deque_timing()
65 boost::function<void()> fn = boost::bind(func,steady_clock::now(),d); in test_deque_timing()
76 steady_clock::duration d = milliseconds(i*100); in test_deque_multi()
88 steady_clock::time_point start = steady_clock::now(); in main()
90 steady_clock::duration diff = steady_clock::now() - start; in main()
/third_party/boost/libs/fiber/test/
Dtest_mutex_post.cpp45 std::chrono::steady_clock::time_point t0 = std::chrono::steady_clock::now(); in fn3()
47 std::chrono::steady_clock::time_point t1 = std::chrono::steady_clock::now(); in fn3()
54 std::chrono::steady_clock::time_point t0 = std::chrono::steady_clock::now(); in fn4()
56 std::chrono::steady_clock::time_point t1 = std::chrono::steady_clock::now(); in fn4()
63 std::chrono::steady_clock::time_point t0 = std::chrono::steady_clock::now(); in fn5()
65 std::chrono::steady_clock::time_point t1 = std::chrono::steady_clock::now(); in fn5()
72 std::chrono::steady_clock::time_point t0 = std::chrono::steady_clock::now(); in fn6()
74 std::chrono::steady_clock::time_point t1 = std::chrono::steady_clock::now(); in fn6()
80 std::chrono::steady_clock::time_point t0 = std::chrono::steady_clock::now(); in fn7()
81 BOOST_CHECK(m.try_lock_until(std::chrono::steady_clock::now() + ms(300) + ms(1000)) == true); in fn7()
[all …]
Dtest_mutex_dispatch.cpp45 std::chrono::steady_clock::time_point t0 = std::chrono::steady_clock::now(); in fn3()
47 std::chrono::steady_clock::time_point t1 = std::chrono::steady_clock::now(); in fn3()
54 std::chrono::steady_clock::time_point t0 = std::chrono::steady_clock::now(); in fn4()
56 std::chrono::steady_clock::time_point t1 = std::chrono::steady_clock::now(); in fn4()
63 std::chrono::steady_clock::time_point t0 = std::chrono::steady_clock::now(); in fn5()
65 std::chrono::steady_clock::time_point t1 = std::chrono::steady_clock::now(); in fn5()
72 std::chrono::steady_clock::time_point t0 = std::chrono::steady_clock::now(); in fn6()
74 std::chrono::steady_clock::time_point t1 = std::chrono::steady_clock::now(); in fn6()
80 std::chrono::steady_clock::time_point t0 = std::chrono::steady_clock::now(); in fn7()
81 BOOST_CHECK(m.try_lock_until(std::chrono::steady_clock::now() + ms(300) + ms(1000)) == true); in fn7()
[all …]
/third_party/boost/libs/thread/test/sync/mutual_exclusion/sync_pq/
Dtq_multi_thread_pass.cpp29 void call_push(sync_tq* q, const steady_clock::time_point start) in call_push()
35 const steady_clock::time_point expected = start + milliseconds(i * 500) + seconds(cnt - i); in call_push()
40 void call_pull(sync_tq* q, const steady_clock::time_point start) in call_pull()
48 const steady_clock::time_point expected = start + milliseconds(i * 500) + seconds(cnt - i); in call_pull()
49 BOOST_TEST_GE(steady_clock::now(), expected - milliseconds(BOOST_THREAD_TEST_TIME_MS)); in call_pull()
50 BOOST_TEST_LE(steady_clock::now(), expected + milliseconds(BOOST_THREAD_TEST_TIME_MS)); in call_pull()
54 void call_pull_until(sync_tq* q, const steady_clock::time_point start) in call_pull_until()
60 q->pull_until(steady_clock::now() + hours(1), j); in call_pull_until()
62 const steady_clock::time_point expected = start + milliseconds(i * 500) + seconds(cnt - i); in call_pull_until()
63 BOOST_TEST_GE(steady_clock::now(), expected - milliseconds(BOOST_THREAD_TEST_TIME_MS)); in call_pull_until()
[all …]
Dtq_single_thread_pass.cpp42 pq.push(i,steady_clock::now() + milliseconds(i*100)); in test_all()
76 boost::queue_op_status st = pq.try_push(i,steady_clock::now() + milliseconds(i*100)); in test_all_with_try()
98 void func(steady_clock::time_point pushed, steady_clock::duration dur) in func()
100 BOOST_TEST(pushed + dur <= steady_clock::now()); in func()
116 steady_clock::duration d = milliseconds(i*100); in test_deque_times()
117 boost::function<void()> fn = boost::bind(func, steady_clock::now(), d); in test_deque_times()
137 steady_clock::duration d = milliseconds(i*100);
Dpq_single_thread_pass.cpp57 steady_clock::time_point start = steady_clock::now(); in test_pull_for()
60 ns d = steady_clock::now() - start - milliseconds(500); in test_pull_for()
68 steady_clock::time_point start = steady_clock::now(); in test_pull_until()
71 ns d = steady_clock::now() - start - milliseconds(500); in test_pull_until()
79 steady_clock::time_point start = steady_clock::now(); in test_nonblocking_pull()
82 ns d = steady_clock::now() - start; in test_nonblocking_pull()
91 steady_clock::time_point start = steady_clock::now(); in test_pull_for_when_not_empty()
94 ns d = steady_clock::now() - start; in test_pull_for_when_not_empty()
104 steady_clock::time_point start = steady_clock::now(); in test_pull_until_when_not_empty()
107 ns d = steady_clock::now() - start; in test_pull_until_when_not_empty()
/third_party/boost/boost/chrono/detail/inlined/mac/
Dchrono.hpp81 steady_clock::rep
89 steady_clock::rep
113 steady_clock::rep
122 return static_cast<steady_clock::rep>(mach_absolute_time() * factor); in steady_full()
127 steady_clock::rep
145 return steady_clock::rep(); in steady_full_ec()
152 return static_cast<steady_clock::rep>(mach_absolute_time() * factor); in steady_full_ec()
156 typedef steady_clock::rep (*FP)();
158 typedef steady_clock::rep (*FP_ec)(system::error_code &);
200 steady_clock::time_point
[all …]
/third_party/boost/boost/chrono/detail/inlined/win/
Dchrono.hpp38 steady_clock::time_point steady_clock::now() BOOST_NOEXCEPT in now()
46 return steady_clock::time_point(); in now()
54 return steady_clock::time_point(); in now()
58 return steady_clock::time_point(steady_clock::duration( in now()
59 static_cast<steady_clock::rep>((nanosecs_per_tic) * pcount.QuadPart))); in now()
64 steady_clock::time_point steady_clock::now( system::error_code & ec ) in now()
86 return steady_clock::time_point(duration(0)); in now()
95 static_cast<steady_clock::rep>(nanosecs_per_tic * pcount.QuadPart))); in now()
/third_party/boost/libs/chrono/example/
Dtest_clock2.cpp38 class steady_clock {}; class
48 enum { value = sizeof sfinae< steady_clock >( 0 ) == sizeof(char) };
133 steady_clock::duration delay = milliseconds(5); in test_steady_clock()
134 steady_clock::time_point start = steady_clock::now(); in test_steady_clock()
135 while (steady_clock::now() - start <= delay) in test_steady_clock()
137 steady_clock::time_point stop = steady_clock::now(); in test_steady_clock()
138 steady_clock::duration elapsed = stop - start; in test_steady_clock()
140 start = steady_clock::now(); in test_steady_clock()
141 stop = steady_clock::now(); in test_steady_clock()
202 test_clock<steady_clock>(); in main()
Dtest_clock.cpp97 steady_clock::duration delay = milliseconds(5); in test_steady_clock()
98 steady_clock::time_point start = steady_clock::now(); in test_steady_clock()
99 while (steady_clock::now() - start <= delay) in test_steady_clock()
101 steady_clock::time_point stop = steady_clock::now(); in test_steady_clock()
102 steady_clock::duration elapsed = stop - start; in test_steady_clock()
104 start = steady_clock::now(); in test_steady_clock()
105 stop = steady_clock::now(); in test_steady_clock()
166 test_clock<steady_clock>(); in main()
Dawait_keystroke.cpp38 timer<steady_clock> t2; in main()
57 steady_clock::time_point d6 = steady_clock::now(); in main()
58 steady_clock::time_point d7 = steady_clock::now(); in main()
/third_party/boost/libs/thread/example/
Dnot_interleaved2.cpp18 chrono::steady_clock::time_point tf = chrono::steady_clock::now() + chrono::seconds(5); in use_cerr()
20 while (chrono::steady_clock::now() < tf) in use_cerr()
31 chrono::steady_clock::time_point tf = chrono::steady_clock::now() + chrono::seconds(5); in use_cout()
33 while (chrono::steady_clock::now() < tf) in use_cout()
Dnot_interleaved.cpp18 chrono::steady_clock::time_point tf = chrono::steady_clock::now() + chrono::seconds(10); in use_cerr()
19 while (chrono::steady_clock::now() < tf) in use_cerr()
29 chrono::steady_clock::time_point tf = chrono::steady_clock::now() + chrono::seconds(5); in use_cout()
30 while (chrono::steady_clock::now() < tf) in use_cout()
Dshared_mutex.cpp78 typedef boost::chrono::steady_clock Clock; in reader()
93 typedef boost::chrono::steady_clock Clock; in writer()
110 typedef boost::chrono::steady_clock Clock; in try_reader()
127 typedef boost::chrono::steady_clock Clock; in try_writer()
146 typedef boost::chrono::steady_clock Clock; in try_for_reader()
163 typedef boost::chrono::steady_clock Clock; in try_for_writer()
222 typedef boost::chrono::steady_clock Clock; in reader()
237 typedef boost::chrono::steady_clock Clock; in writer()
254 typedef boost::chrono::steady_clock Clock; in try_reader()
271 typedef boost::chrono::steady_clock Clock; in try_writer()
[all …]
/third_party/boost/doc/html/boost_asio/example/cpp03/timeouts/
Dblocking_tcp_client.cpp51 boost::asio::chrono::steady_clock::duration timeout) in connect()
72 std::string read_line(boost::asio::chrono::steady_clock::duration timeout) in read_line()
97 boost::asio::chrono::steady_clock::duration timeout) in write_line()
117 void run(boost::asio::chrono::steady_clock::duration timeout) in run()
162 boost::asio::chrono::steady_clock::time_point time_sent = in main()
163 boost::asio::chrono::steady_clock::now(); in main()
176 boost::asio::chrono::steady_clock::time_point time_received = in main()
177 boost::asio::chrono::steady_clock::now(); in main()
Dblocking_token_tcp_client.cpp35 close_after(boost::asio::chrono::steady_clock::duration t, tcp_socket& s) in close_after()
41 boost::asio::chrono::steady_clock::duration timeout_;
132 boost::asio::chrono::steady_clock::duration timeout_;
165 boost::asio::chrono::steady_clock::time_point time_sent = in main()
166 boost::asio::chrono::steady_clock::now(); in main()
188 boost::asio::chrono::steady_clock::time_point time_received = in main()
189 boost::asio::chrono::steady_clock::now(); in main()
/third_party/boost/libs/asio/example/cpp03/timeouts/
Dblocking_tcp_client.cpp51 boost::asio::chrono::steady_clock::duration timeout) in connect()
72 std::string read_line(boost::asio::chrono::steady_clock::duration timeout) in read_line()
97 boost::asio::chrono::steady_clock::duration timeout) in write_line()
117 void run(boost::asio::chrono::steady_clock::duration timeout) in run()
162 boost::asio::chrono::steady_clock::time_point time_sent = in main()
163 boost::asio::chrono::steady_clock::now(); in main()
176 boost::asio::chrono::steady_clock::time_point time_received = in main()
177 boost::asio::chrono::steady_clock::now(); in main()
Dblocking_token_tcp_client.cpp35 close_after(boost::asio::chrono::steady_clock::duration t, tcp_socket& s) in close_after()
41 boost::asio::chrono::steady_clock::duration timeout_;
132 boost::asio::chrono::steady_clock::duration timeout_;
165 boost::asio::chrono::steady_clock::time_point time_sent = in main()
166 boost::asio::chrono::steady_clock::now(); in main()
188 boost::asio::chrono::steady_clock::time_point time_received = in main()
189 boost::asio::chrono::steady_clock::now(); in main()
/third_party/boost/libs/chrono/test/
Danother_obj.cpp14 boost::chrono::steady_clock::time_point t1=boost::chrono::steady_clock::now(); in another()
15 boost::chrono::steady_clock::time_point t2=boost::chrono::steady_clock::now(); in another()
Done_obj.cpp17 boost::chrono::steady_clock::time_point t1=boost::chrono::steady_clock::now(); in main()
19 boost::chrono::steady_clock::time_point t2=boost::chrono::steady_clock::now(); in main()
/third_party/boost/boost/chrono/detail/inlined/posix/
Dchrono.hpp76 steady_clock::time_point steady_clock::now() BOOST_NOEXCEPT in now()
94 static_cast<steady_clock::rep>( ts.tv_sec ) * 1000000000 + ts.tv_nsec)); in now()
98 steady_clock::time_point steady_clock::now(system::error_code & ec) in now()
133 static_cast<steady_clock::rep>( ts.tv_sec ) * 1000000000 + ts.tv_nsec)); in now()
/third_party/boost/boost/fiber/detail/
Dconvert.hpp26 std::chrono::steady_clock::time_point convert( in convert()
27 std::chrono::steady_clock::time_point const& timeout_time) noexcept { in convert()
32 std::chrono::steady_clock::time_point convert( in convert()
34 return std::chrono::steady_clock::now() + ( timeout_time - Clock::now() ); in convert()
/third_party/boost/doc/html/boost_asio/example/cpp11/timeouts/
Dblocking_tcp_client.cpp40 std::chrono::steady_clock::duration timeout) in connect()
65 std::string read_line(std::chrono::steady_clock::duration timeout) in read_line()
95 std::chrono::steady_clock::duration timeout) in write_line()
120 void run(std::chrono::steady_clock::duration timeout) in run()
165 auto time_sent = std::chrono::steady_clock::now(); in main()
178 auto time_received = std::chrono::steady_clock::now(); in main()
/third_party/boost/libs/thread/test/threads/thread/members/
Dtry_join_until_pass.cpp68 …resource_deadlock_would_occur_th->try_join_until(boost::chrono::steady_clock::now()+boost::chrono:… in resource_deadlock_would_occur_tester()
92 t0.try_join_until(boost::chrono::steady_clock::now()+boost::chrono::milliseconds(250)); in main()
97 …BOOST_TEST(!t0.try_join_until(boost::chrono::steady_clock::now()+boost::chrono::milliseconds(50))); in main()
118 t0.try_join_until(boost::chrono::steady_clock::now()+boost::chrono::milliseconds(50)); in main()
132 t0.try_join_until(boost::chrono::steady_clock::now()+boost::chrono::milliseconds(50)); in main()
144 t0.try_join_until(boost::chrono::steady_clock::now()+boost::chrono::milliseconds(250)); in main()

1234567891011