Home
last modified time | relevance | path

Searched refs:Clock (Results 1 – 25 of 117) sorted by relevance

12345

/external/libcxx/test/std/thread/futures/futures.async/
Dasync.pass.cpp26 typedef std::chrono::high_resolution_clock Clock; typedef
71 Clock::time_point t0 = Clock::now(); in main()
73 Clock::time_point t1 = Clock::now(); in main()
79 Clock::time_point t0 = Clock::now(); in main()
81 Clock::time_point t1 = Clock::now(); in main()
87 Clock::time_point t0 = Clock::now(); in main()
89 Clock::time_point t1 = Clock::now(); in main()
95 Clock::time_point t0 = Clock::now(); in main()
97 Clock::time_point t1 = Clock::now(); in main()
104 Clock::time_point t0 = Clock::now(); in main()
[all …]
/external/libcxx/test/std/thread/futures/futures.shared_future/
Dwait_until.pass.cpp65 typedef std::chrono::high_resolution_clock Clock; in main() typedef
72 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::timeout); in main()
79 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::ready); in main()
81 Clock::time_point t0 = Clock::now(); in main()
83 Clock::time_point t1 = Clock::now(); in main()
93 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::timeout); in main()
100 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::ready); in main()
102 Clock::time_point t0 = Clock::now(); in main()
104 Clock::time_point t1 = Clock::now(); in main()
114 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::timeout); in main()
[all …]
Dwait.pass.cpp44 typedef std::chrono::high_resolution_clock Clock; in main() typedef
54 Clock::time_point t0 = Clock::now(); in main()
56 Clock::time_point t1 = Clock::now(); in main()
68 Clock::time_point t0 = Clock::now(); in main()
70 Clock::time_point t1 = Clock::now(); in main()
82 Clock::time_point t0 = Clock::now(); in main()
84 Clock::time_point t1 = Clock::now(); in main()
Dwait_for.pass.cpp48 typedef std::chrono::high_resolution_clock Clock; in main() typedef
59 Clock::time_point t0 = Clock::now(); in main()
61 Clock::time_point t1 = Clock::now(); in main()
75 Clock::time_point t0 = Clock::now(); in main()
77 Clock::time_point t1 = Clock::now(); in main()
91 Clock::time_point t0 = Clock::now(); in main()
93 Clock::time_point t1 = Clock::now(); in main()
/external/libcxx/test/std/thread/futures/futures.unique_future/
Dwait_until.pass.cpp65 typedef std::chrono::high_resolution_clock Clock; in main() typedef
72 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::timeout); in main()
79 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::ready); in main()
81 Clock::time_point t0 = Clock::now(); in main()
83 Clock::time_point t1 = Clock::now(); in main()
93 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::timeout); in main()
100 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::ready); in main()
102 Clock::time_point t0 = Clock::now(); in main()
104 Clock::time_point t1 = Clock::now(); in main()
114 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::timeout); in main()
[all …]
Dwait.pass.cpp44 typedef std::chrono::high_resolution_clock Clock; in main() typedef
54 Clock::time_point t0 = Clock::now(); in main()
56 Clock::time_point t1 = Clock::now(); in main()
68 Clock::time_point t0 = Clock::now(); in main()
70 Clock::time_point t1 = Clock::now(); in main()
82 Clock::time_point t0 = Clock::now(); in main()
84 Clock::time_point t1 = Clock::now(); in main()
Dwait_for.pass.cpp48 typedef std::chrono::high_resolution_clock Clock; in main() typedef
59 Clock::time_point t0 = Clock::now(); in main()
61 Clock::time_point t1 = Clock::now(); in main()
75 Clock::time_point t0 = Clock::now(); in main()
77 Clock::time_point t1 = Clock::now(); in main()
91 Clock::time_point t0 = Clock::now(); in main()
93 Clock::time_point t1 = Clock::now(); in main()
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvarany/
Dwait_until.pass.cpp26 struct Clock struct
31 typedef std::chrono::time_point<Clock> time_point; argument
61 Clock::time_point t0 = Clock::now(); in f()
62 Clock::time_point t = t0 + Clock::duration(250); in f()
65 Clock::time_point t1 = Clock::now(); in f()
68 assert(t1 - t0 < Clock::duration(250)); in f()
73 assert(t1 - t0 - Clock::duration(250) < Clock::duration(50)); in f()
Dwait_until_pred.pass.cpp28 struct Clock struct
33 typedef std::chrono::time_point<Clock> time_point; argument
72 Clock::time_point t0 = Clock::now(); in f()
73 Clock::time_point t = t0 + Clock::duration(250); in f()
75 Clock::time_point t1 = Clock::now(); in f()
78 assert(t1 - t0 < Clock::duration(250)); in f()
84 assert(t1 - t0 - Clock::duration(250) < Clock::duration(50)); in f()
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvar/
Dwait_until.pass.cpp27 struct Clock struct
32 typedef std::chrono::time_point<Clock> time_point; argument
58 Clock::time_point t0 = Clock::now(); in f() argument
59 Clock::time_point t = t0 + Clock::duration(250); in f()
62 Clock::time_point t1 = Clock::now(); in f()
65 assert(t1 - t0 < Clock::duration(250)); in f()
70 assert(t1 - t0 - Clock::duration(250) < Clock::duration(50)); in f()
Dwait_until_pred.pass.cpp28 struct Clock struct
33 typedef std::chrono::time_point<Clock> time_point; argument
68 Clock::time_point t0 = Clock::now(); in f()
69 Clock::time_point t = t0 + Clock::duration(250); in f()
71 Clock::time_point t1 = Clock::now(); in f()
74 assert(t1 - t0 < Clock::duration(250)); in f()
80 assert(t1 - t0 - Clock::duration(250) < Clock::duration(50)); in f()
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/
Dtry_lock_until.pass.cpp28 typedef std::chrono::steady_clock Clock; typedef
29 typedef Clock::time_point time_point;
30 typedef Clock::duration duration;
36 time_point t0 = Clock::now(); in f1()
37 assert(m.try_lock_until(Clock::now() + ms(300)) == true); in f1()
38 time_point t1 = Clock::now(); in f1()
46 time_point t0 = Clock::now(); in f2()
47 assert(m.try_lock_until(Clock::now() + ms(250)) == false); in f2()
48 time_point t1 = Clock::now(); in f2()
Dtry_lock_shared_until.pass.cpp29 typedef std::chrono::steady_clock Clock; typedef
30 typedef Clock::time_point time_point;
31 typedef Clock::duration duration;
37 time_point t0 = Clock::now(); in f1()
38 assert(m.try_lock_shared_until(Clock::now() + ms(300)) == true); in f1()
39 time_point t1 = Clock::now(); in f1()
47 time_point t0 = Clock::now(); in f2()
48 assert(m.try_lock_shared_until(Clock::now() + ms(250)) == false); in f2()
49 time_point t1 = Clock::now(); in f2()
Dtry_lock_for.pass.cpp28 typedef std::chrono::steady_clock Clock; typedef
29 typedef Clock::time_point time_point;
30 typedef Clock::duration duration;
36 time_point t0 = Clock::now(); in f1()
38 time_point t1 = Clock::now(); in f1()
46 time_point t0 = Clock::now(); in f2()
48 time_point t1 = Clock::now(); in f2()
Dlock_shared.pass.cpp28 typedef std::chrono::system_clock Clock; typedef
29 typedef Clock::time_point time_point;
30 typedef Clock::duration duration;
36 time_point t0 = Clock::now(); in f()
38 time_point t1 = Clock::now(); in f()
46 time_point t0 = Clock::now(); in g()
48 time_point t1 = Clock::now(); in g()
Dtry_lock_shared_for.pass.cpp29 typedef std::chrono::steady_clock Clock; typedef
30 typedef Clock::time_point time_point;
31 typedef Clock::duration duration;
37 time_point t0 = Clock::now(); in f1()
39 time_point t1 = Clock::now(); in f1()
47 time_point t0 = Clock::now(); in f2()
49 time_point t1 = Clock::now(); in f2()
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/
Dtry_lock_until.pass.cpp26 typedef std::chrono::steady_clock Clock; typedef
27 typedef Clock::time_point time_point;
28 typedef Clock::duration duration;
34 time_point t0 = Clock::now(); in f1()
35 assert(m.try_lock_until(Clock::now() + ms(300)) == true); in f1()
36 time_point t1 = Clock::now(); in f1()
44 time_point t0 = Clock::now(); in f2()
45 assert(m.try_lock_until(Clock::now() + ms(250)) == false); in f2()
46 time_point t1 = Clock::now(); in f2()
Dtry_lock_for.pass.cpp26 typedef std::chrono::steady_clock Clock; typedef
27 typedef Clock::time_point time_point;
28 typedef Clock::duration duration;
34 time_point t0 = Clock::now(); in f1()
36 time_point t1 = Clock::now(); in f1()
44 time_point t0 = Clock::now(); in f2()
46 time_point t1 = Clock::now(); in f2()
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/
Dtry_lock_until.pass.cpp26 typedef std::chrono::steady_clock Clock; typedef
27 typedef Clock::time_point time_point;
28 typedef Clock::duration duration;
34 time_point t0 = Clock::now(); in f1()
35 assert(m.try_lock_until(Clock::now() + ms(300)) == true); in f1()
36 time_point t1 = Clock::now(); in f1()
46 time_point t0 = Clock::now(); in f2()
47 assert(m.try_lock_until(Clock::now() + ms(250)) == false); in f2()
48 time_point t1 = Clock::now(); in f2()
Dtry_lock_for.pass.cpp26 typedef std::chrono::steady_clock Clock; typedef
27 typedef Clock::time_point time_point;
28 typedef Clock::duration duration;
34 time_point t0 = Clock::now(); in f1()
36 time_point t1 = Clock::now(); in f1()
46 time_point t0 = Clock::now(); in f2()
48 time_point t1 = Clock::now(); in f2()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/
Dmutex_time_point.pass.cpp26 typedef std::chrono::steady_clock Clock; typedef
27 typedef Clock::time_point time_point;
28 typedef Clock::duration duration;
34 time_point t0 = Clock::now(); in f1()
35 std::unique_lock<std::timed_mutex> lk(m, Clock::now() + ms(300)); in f1()
37 time_point t1 = Clock::now(); in f1()
44 time_point t0 = Clock::now(); in f2()
45 std::unique_lock<std::timed_mutex> lk(m, Clock::now() + ms(250)); in f2()
47 time_point t1 = Clock::now(); in f2()
Dmutex_duration.pass.cpp26 typedef std::chrono::steady_clock Clock; typedef
27 typedef Clock::time_point time_point;
28 typedef Clock::duration duration;
34 time_point t0 = Clock::now(); in f1()
37 time_point t1 = Clock::now(); in f1()
44 time_point t0 = Clock::now(); in f2()
47 time_point t1 = Clock::now(); in f2()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/
Dmutex_time_point.pass.cpp29 typedef std::chrono::steady_clock Clock; typedef
30 typedef Clock::time_point time_point;
31 typedef Clock::duration duration;
37 time_point t0 = Clock::now(); in f1()
38 std::shared_lock<std::shared_timed_mutex> lk(m, Clock::now() + ms(300)); in f1()
40 time_point t1 = Clock::now(); in f1()
47 time_point t0 = Clock::now(); in f2()
48 std::shared_lock<std::shared_timed_mutex> lk(m, Clock::now() + ms(250)); in f2()
50 time_point t1 = Clock::now(); in f2()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/
Dtry_lock_until.pass.cpp28 template <class Clock, class Duration>
29 bool try_lock_shared_until(const std::chrono::time_point<Clock, Duration>& abs_time) in try_lock_shared_until()
32 assert(Clock::now() - abs_time < ms(5)); in try_lock_shared_until()
46 typedef std::chrono::steady_clock Clock; in main() typedef
48 assert(lk.try_lock_until(Clock::now()) == true); in main()
53 lk.try_lock_until(Clock::now()); in main()
61 assert(lk.try_lock_until(Clock::now()) == false); in main()
67 lk.try_lock_until(Clock::now()); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/
Dtry_lock_until.pass.cpp26 template <class Clock, class Duration>
27 bool try_lock_until(const std::chrono::time_point<Clock, Duration>& abs_time) in try_lock_until()
30 assert(Clock::now() - abs_time < ms(5)); in try_lock_until()
41 typedef std::chrono::steady_clock Clock; in main() typedef
43 assert(lk.try_lock_until(Clock::now()) == true); in main()
48 lk.try_lock_until(Clock::now()); in main()
56 assert(lk.try_lock_until(Clock::now()) == false); in main()
62 lk.try_lock_until(Clock::now()); in main()

12345