Home
last modified time | relevance | path

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

12345678910>>...17

/external/libcxx/test/std/thread/futures/futures.shared_future/
Dwait_until.pass.cpp68 typedef std::chrono::high_resolution_clock Clock; in main() typedef
75 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::timeout); in main()
82 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::ready); in main()
84 Clock::time_point t0 = Clock::now(); in main()
86 Clock::time_point t1 = Clock::now(); in main()
96 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::timeout); in main()
103 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::ready); in main()
105 Clock::time_point t0 = Clock::now(); in main()
107 Clock::time_point t1 = Clock::now(); in main()
117 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::timeout); in main()
[all …]
Dwait.pass.cpp45 typedef std::chrono::high_resolution_clock Clock; in main() typedef
55 Clock::time_point t0 = Clock::now(); in main()
57 Clock::time_point t1 = Clock::now(); in main()
69 Clock::time_point t0 = Clock::now(); in main()
71 Clock::time_point t1 = Clock::now(); in main()
83 Clock::time_point t0 = Clock::now(); in main()
85 Clock::time_point t1 = Clock::now(); in main()
Dwait_for.pass.cpp49 typedef std::chrono::high_resolution_clock Clock; in main() typedef
60 Clock::time_point t0 = Clock::now(); in main()
62 Clock::time_point t1 = Clock::now(); in main()
76 Clock::time_point t0 = Clock::now(); in main()
78 Clock::time_point t1 = Clock::now(); in main()
92 Clock::time_point t0 = Clock::now(); in main()
94 Clock::time_point t1 = Clock::now(); in main()
/external/libcxx/test/std/thread/futures/futures.unique_future/
Dwait_until.pass.cpp66 typedef std::chrono::high_resolution_clock Clock; in main() typedef
73 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::timeout); in main()
80 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::ready); in main()
82 Clock::time_point t0 = Clock::now(); in main()
84 Clock::time_point t1 = Clock::now(); in main()
94 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::timeout); in main()
101 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::ready); in main()
103 Clock::time_point t0 = Clock::now(); in main()
105 Clock::time_point t1 = Clock::now(); in main()
115 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::timeout); in main()
[all …]
Dwait.pass.cpp45 typedef std::chrono::high_resolution_clock Clock; in main() typedef
55 Clock::time_point t0 = Clock::now(); in main()
57 Clock::time_point t1 = Clock::now(); in main()
69 Clock::time_point t0 = Clock::now(); in main()
71 Clock::time_point t1 = Clock::now(); in main()
83 Clock::time_point t0 = Clock::now(); in main()
85 Clock::time_point t1 = Clock::now(); in main()
Dwait_for.pass.cpp49 typedef std::chrono::high_resolution_clock Clock; in main() typedef
60 Clock::time_point t0 = Clock::now(); in main()
62 Clock::time_point t1 = Clock::now(); in main()
76 Clock::time_point t0 = Clock::now(); in main()
78 Clock::time_point t1 = Clock::now(); in main()
92 Clock::time_point t0 = Clock::now(); in main()
94 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.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.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.lock/thread.lock.unique/thread.lock.unique.cons/
Dmutex_time_point.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 std::unique_lock<std::timed_mutex> lk(m, Clock::now() + ms(300)); in f1()
39 time_point t1 = Clock::now(); in f1()
46 time_point t0 = Clock::now(); in f2()
47 std::unique_lock<std::timed_mutex> lk(m, Clock::now() + ms(250)); in f2()
49 time_point t1 = Clock::now(); in f2()
Dmutex_duration.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()
39 time_point t1 = Clock::now(); in f1()
46 time_point t0 = Clock::now(); in f2()
49 time_point t1 = Clock::now(); in f2()
/external/libcxx/test/libcxx/thread/thread.condition/
DPR30202_notify_from_pthread_created_thread.pass.cpp38 typedef std::chrono::high_resolution_clock Clock; typedef
56 Clock::time_point t0 = Clock::now(); in main()
59 Clock::time_point t1 = Clock::now(); in main()
68 Clock::time_point t0 = Clock::now(); in main()
71 Clock::time_point t1 = Clock::now(); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/
Dtry_lock_until.pass.cpp31 typedef std::chrono::steady_clock Clock; typedef
32 typedef Clock::time_point time_point;
33 typedef Clock::duration duration;
51 time_point t0 = Clock::now(); in f1()
52 assert(m.try_lock_until(Clock::now() + WaitTime + Tolerance) == true); in f1()
53 time_point t1 = Clock::now(); in f1()
61 time_point t0 = Clock::now(); in f2()
62 assert(m.try_lock_until(Clock::now() + WaitTime) == false); in f2()
63 time_point t1 = Clock::now(); in f2()
Dtry_lock_shared_until.pass.cpp32 typedef std::chrono::steady_clock Clock; typedef
33 typedef Clock::time_point time_point;
34 typedef Clock::duration duration;
51 time_point t0 = Clock::now(); in f1()
52 assert(m.try_lock_shared_until(Clock::now() + WaitTime + Tolerance) == true); in f1()
53 time_point t1 = Clock::now(); in f1()
61 time_point t0 = Clock::now(); in f2()
62 assert(m.try_lock_shared_until(Clock::now() + WaitTime) == false); in f2()
63 time_point t1 = Clock::now(); in f2()
Dtry_lock_for.pass.cpp31 typedef std::chrono::steady_clock Clock; typedef
32 typedef Clock::time_point time_point;
33 typedef Clock::duration duration;
51 time_point t0 = Clock::now(); in f1()
53 time_point t1 = Clock::now(); in f1()
61 time_point t0 = Clock::now(); in f2()
63 time_point t1 = Clock::now(); in f2()
Dlock_shared.pass.cpp31 typedef std::chrono::system_clock Clock; typedef
32 typedef Clock::time_point time_point;
33 typedef Clock::duration duration;
52 time_point t0 = Clock::now(); in f()
54 time_point t1 = Clock::now(); in f()
62 time_point t0 = Clock::now(); in g()
64 time_point t1 = Clock::now(); in g()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/
Dtry_lock_until.pass.cpp28 template <class Clock, class Duration>
29 bool try_lock_until(const std::chrono::time_point<Clock, Duration>& abs_time) in try_lock_until()
32 assert(Clock::now() - abs_time < ms(5)); in try_lock_until()
43 typedef std::chrono::steady_clock Clock; in main() typedef
45 assert(lk.try_lock_until(Clock::now()) == true); in main()
51 TEST_IGNORE_NODISCARD lk.try_lock_until(Clock::now()); in main()
60 assert(lk.try_lock_until(Clock::now()) == false); in main()
67 TEST_IGNORE_NODISCARD lk.try_lock_until(Clock::now()); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/
Dtry_lock_until.pass.cpp29 template <class Clock, class Duration>
30 bool try_lock_shared_until(const std::chrono::time_point<Clock, Duration>& abs_time) in try_lock_shared_until()
33 assert(Clock::now() - abs_time < ms(5)); in try_lock_shared_until()
44 typedef std::chrono::steady_clock Clock; in main() typedef
46 assert(lk.try_lock_until(Clock::now()) == true); in main()
52 TEST_IGNORE_NODISCARD lk.try_lock_until(Clock::now()); in main()
61 assert(lk.try_lock_until(Clock::now()) == false); in main()
68 TEST_IGNORE_NODISCARD lk.try_lock_until(Clock::now()); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/
Dmutex_time_point.pass.cpp32 typedef std::chrono::steady_clock Clock; typedef
33 typedef Clock::time_point time_point;
34 typedef Clock::duration duration;
51 time_point t0 = Clock::now(); in f1()
52 std::shared_lock<std::shared_timed_mutex> lk(m, Clock::now() + WaitTime + Tolerance); in f1()
54 time_point t1 = Clock::now(); in f1()
61 time_point t0 = Clock::now(); in f2()
62 std::shared_lock<std::shared_timed_mutex> lk(m, Clock::now() + WaitTime); in f2()
64 time_point t1 = Clock::now(); in f2()
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.shared_mutex.requirements/thread.shared_mutex.class/
Dlock_shared.pass.cpp31 typedef std::chrono::system_clock Clock; typedef
32 typedef Clock::time_point time_point;
33 typedef Clock::duration duration;
50 time_point t0 = Clock::now(); in f()
52 time_point t1 = Clock::now(); in f()
60 time_point t0 = Clock::now(); in g()
62 time_point t1 = Clock::now(); in g()

12345678910>>...17