Home
last modified time | relevance | path

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

12345

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/futures/futures.async/
Dasync.pass.cpp24 typedef std::chrono::high_resolution_clock Clock; typedef
69 Clock::time_point t0 = Clock::now(); in main()
71 Clock::time_point t1 = Clock::now(); in main()
77 Clock::time_point t0 = Clock::now(); in main()
79 Clock::time_point t1 = Clock::now(); in main()
85 Clock::time_point t0 = Clock::now(); in main()
87 Clock::time_point t1 = Clock::now(); in main()
93 Clock::time_point t0 = Clock::now(); in main()
95 Clock::time_point t1 = Clock::now(); in main()
102 Clock::time_point t0 = Clock::now(); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/futures/futures.unique_future/
Dwait_until.pass.cpp46 typedef std::chrono::high_resolution_clock Clock; in main() typedef
53 assert(f.wait_until(Clock::now() + ms(300)) == std::future_status::timeout); in main()
55 assert(f.wait_until(Clock::now() + ms(300)) == std::future_status::ready); in main()
57 Clock::time_point t0 = Clock::now(); in main()
59 Clock::time_point t1 = Clock::now(); in main()
69 assert(f.wait_until(Clock::now() + ms(300)) == std::future_status::timeout); in main()
71 assert(f.wait_until(Clock::now() + ms(300)) == std::future_status::ready); in main()
73 Clock::time_point t0 = Clock::now(); in main()
75 Clock::time_point t1 = Clock::now(); in main()
85 assert(f.wait_until(Clock::now() + ms(300)) == std::future_status::timeout); in main()
[all …]
Dwait.pass.cpp42 typedef std::chrono::high_resolution_clock Clock; in main() typedef
52 Clock::time_point t0 = Clock::now(); in main()
54 Clock::time_point t1 = Clock::now(); in main()
66 Clock::time_point t0 = Clock::now(); in main()
68 Clock::time_point t1 = Clock::now(); in main()
80 Clock::time_point t0 = Clock::now(); in main()
82 Clock::time_point t1 = Clock::now(); in main()
Dwait_for.pass.cpp46 typedef std::chrono::high_resolution_clock Clock; in main() typedef
57 Clock::time_point t0 = Clock::now(); in main()
59 Clock::time_point t1 = Clock::now(); in main()
73 Clock::time_point t0 = Clock::now(); in main()
75 Clock::time_point t1 = Clock::now(); in main()
89 Clock::time_point t0 = Clock::now(); in main()
91 Clock::time_point t1 = Clock::now(); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/futures/futures.shared_future/
Dwait_until.pass.cpp46 typedef std::chrono::high_resolution_clock Clock; in main() typedef
53 assert(f.wait_until(Clock::now() + ms(300)) == std::future_status::timeout); in main()
55 assert(f.wait_until(Clock::now() + ms(300)) == std::future_status::ready); in main()
57 Clock::time_point t0 = Clock::now(); in main()
59 Clock::time_point t1 = Clock::now(); in main()
69 assert(f.wait_until(Clock::now() + ms(300)) == std::future_status::timeout); in main()
71 assert(f.wait_until(Clock::now() + ms(300)) == std::future_status::ready); in main()
73 Clock::time_point t0 = Clock::now(); in main()
75 Clock::time_point t1 = Clock::now(); in main()
85 assert(f.wait_until(Clock::now() + ms(300)) == std::future_status::timeout); in main()
[all …]
Dwait.pass.cpp42 typedef std::chrono::high_resolution_clock Clock; in main() typedef
52 Clock::time_point t0 = Clock::now(); in main()
54 Clock::time_point t1 = Clock::now(); in main()
66 Clock::time_point t0 = Clock::now(); in main()
68 Clock::time_point t1 = Clock::now(); in main()
80 Clock::time_point t0 = Clock::now(); in main()
82 Clock::time_point t1 = Clock::now(); in main()
Dwait_for.pass.cpp46 typedef std::chrono::high_resolution_clock Clock; in main() typedef
57 Clock::time_point t0 = Clock::now(); in main()
59 Clock::time_point t1 = Clock::now(); in main()
73 Clock::time_point t0 = Clock::now(); in main()
75 Clock::time_point t1 = Clock::now(); in main()
89 Clock::time_point t0 = Clock::now(); in main()
91 Clock::time_point t1 = Clock::now(); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.condition/thread.condition.condvar/
Dwait_until.pass.cpp25 struct Clock struct
30 typedef std::chrono::time_point<Clock> time_point; argument
56 Clock::time_point t0 = Clock::now(); in f() argument
57 Clock::time_point t = t0 + Clock::duration(250); in f()
60 Clock::time_point t1 = Clock::now(); in f()
63 assert(t1 - t0 < Clock::duration(250)); in f()
68 assert(t1 - t0 - Clock::duration(250) < Clock::duration(50)); in f()
Dwait_until_pred.pass.cpp26 struct Clock struct
31 typedef std::chrono::time_point<Clock> time_point; argument
66 Clock::time_point t0 = Clock::now(); in f()
67 Clock::time_point t = t0 + Clock::duration(250); in f()
69 Clock::time_point t1 = Clock::now(); in f()
72 assert(t1 - t0 < Clock::duration(250)); in f()
78 assert(t1 - t0 - Clock::duration(250) < Clock::duration(50)); in f()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.condition/thread.condition.condvarany/
Dwait_until.pass.cpp24 struct Clock struct
29 typedef std::chrono::time_point<Clock> time_point; argument
59 Clock::time_point t0 = Clock::now(); in f()
60 Clock::time_point t = t0 + Clock::duration(250); in f()
63 Clock::time_point t1 = Clock::now(); in f()
66 assert(t1 - t0 < Clock::duration(250)); in f()
71 assert(t1 - t0 - Clock::duration(250) < Clock::duration(50)); in f()
Dwait_until_pred.pass.cpp26 struct Clock struct
31 typedef std::chrono::time_point<Clock> time_point; argument
70 Clock::time_point t0 = Clock::now(); in f()
71 Clock::time_point t = t0 + Clock::duration(250); in f()
73 Clock::time_point t1 = Clock::now(); in f()
76 assert(t1 - t0 < Clock::duration(250)); in f()
82 assert(t1 - t0 - Clock::duration(250) < Clock::duration(50)); in f()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/
Dtry_lock_until.pass.cpp24 typedef std::chrono::steady_clock Clock; typedef
25 typedef Clock::time_point time_point;
26 typedef Clock::duration duration;
32 time_point t0 = Clock::now(); in f1()
33 assert(m.try_lock_until(Clock::now() + ms(300)) == true); in f1()
34 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.cpp24 typedef std::chrono::steady_clock Clock; typedef
25 typedef Clock::time_point time_point;
26 typedef Clock::duration duration;
32 time_point t0 = Clock::now(); in f1()
34 time_point t1 = Clock::now(); in f1()
44 time_point t0 = Clock::now(); in f2()
46 time_point t1 = Clock::now(); in f2()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/
Dtry_lock_until.pass.cpp24 typedef std::chrono::steady_clock Clock; typedef
25 typedef Clock::time_point time_point;
26 typedef Clock::duration duration;
32 time_point t0 = Clock::now(); in f1()
33 assert(m.try_lock_until(Clock::now() + ms(300)) == true); in f1()
34 time_point t1 = Clock::now(); in f1()
42 time_point t0 = Clock::now(); in f2()
43 assert(m.try_lock_until(Clock::now() + ms(250)) == false); in f2()
44 time_point t1 = Clock::now(); in f2()
Dtry_lock_for.pass.cpp24 typedef std::chrono::steady_clock Clock; typedef
25 typedef Clock::time_point time_point;
26 typedef Clock::duration duration;
32 time_point t0 = Clock::now(); in f1()
34 time_point t1 = Clock::now(); in f1()
42 time_point t0 = Clock::now(); in f2()
44 time_point t1 = Clock::now(); in f2()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.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_shared_until.pass.cpp27 typedef std::chrono::steady_clock Clock; typedef
28 typedef Clock::time_point time_point;
29 typedef Clock::duration duration;
35 time_point t0 = Clock::now(); in f1()
36 assert(m.try_lock_shared_until(Clock::now() + ms(300)) == true); in f1()
37 time_point t1 = Clock::now(); in f1()
45 time_point t0 = Clock::now(); in f2()
46 assert(m.try_lock_shared_until(Clock::now() + ms(250)) == false); in f2()
47 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()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/
Dmutex_time_point.pass.cpp24 typedef std::chrono::steady_clock Clock; typedef
25 typedef Clock::time_point time_point;
26 typedef Clock::duration duration;
32 time_point t0 = Clock::now(); in f1()
33 std::unique_lock<std::timed_mutex> lk(m, Clock::now() + ms(300)); in f1()
35 time_point t1 = Clock::now(); in f1()
42 time_point t0 = Clock::now(); in f2()
43 std::unique_lock<std::timed_mutex> lk(m, Clock::now() + ms(250)); in f2()
45 time_point t1 = Clock::now(); in f2()
Dmutex_duration.pass.cpp24 typedef std::chrono::steady_clock Clock; typedef
25 typedef Clock::time_point time_point;
26 typedef Clock::duration duration;
32 time_point t0 = Clock::now(); in f1()
35 time_point t1 = Clock::now(); in f1()
42 time_point t0 = Clock::now(); in f2()
45 time_point t1 = Clock::now(); in f2()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/
Dtry_lock_until.pass.cpp24 template <class Clock, class Duration>
25 bool try_lock_until(const std::chrono::time_point<Clock, Duration>& abs_time) in try_lock_until()
28 assert(Clock::now() - abs_time < ms(5)); in try_lock_until()
39 typedef std::chrono::steady_clock Clock; in main() typedef
41 assert(lk.try_lock_until(Clock::now()) == true); in main()
46 lk.try_lock_until(Clock::now()); in main()
54 assert(lk.try_lock_until(Clock::now()) == false); in main()
60 lk.try_lock_until(Clock::now()); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/
Dtry_lock_until.pass.cpp26 template <class Clock, class Duration>
27 bool try_lock_shared_until(const std::chrono::time_point<Clock, Duration>& abs_time) in try_lock_shared_until()
30 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()
51 lk.try_lock_until(Clock::now()); in main()
59 assert(lk.try_lock_until(Clock::now()) == false); in main()
65 lk.try_lock_until(Clock::now()); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/
Dmutex_time_point.pass.cpp27 typedef std::chrono::steady_clock Clock; typedef
28 typedef Clock::time_point time_point;
29 typedef Clock::duration duration;
35 time_point t0 = Clock::now(); in f1()
36 std::shared_lock<std::shared_timed_mutex> lk(m, Clock::now() + ms(300)); in f1()
38 time_point t1 = Clock::now(); in f1()
45 time_point t0 = Clock::now(); in f2()
46 std::shared_lock<std::shared_timed_mutex> lk(m, Clock::now() + ms(250)); in f2()
48 time_point t1 = Clock::now(); in f2()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.point/time.point.nonmember/
Dop_+.pass.cpp27 typedef std::chrono::system_clock Clock; in main() typedef
31 std::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main()
32 std::chrono::time_point<Clock, Duration2> t2 = t1 + Duration2(5); in main()
39 constexpr std::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main()
40 constexpr std::chrono::time_point<Clock, Duration2> t2 = t1 + Duration2(5); in main()
42 constexpr std::chrono::time_point<Clock, Duration2> t3 = Duration2(6) + t1; in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.threads/thread.thread.this/
Dsleep_until.pass.cpp21 typedef std::chrono::system_clock Clock; in main() typedef
22 typedef Clock::time_point time_point; in main()
23 typedef Clock::duration duration; in main()
25 time_point t0 = Clock::now(); in main()
27 time_point t1 = Clock::now(); in main()

12345