Searched refs:Clock (Results 1 - 25 of 82) sorted by relevance

1234

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/futures/futures.async/
H A Dasync.pass.cpp24 typedef std::chrono::high_resolution_clock Clock; typedef
69 Clock::time_point t0 = Clock::now();
71 Clock::time_point t1 = Clock::now();
77 Clock::time_point t0 = Clock::now();
79 Clock::time_point t1 = Clock::now();
85 Clock
[all...]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.point/time.point.cons/
H A Dduration.fail.cpp22 typedef std::chrono::system_clock Clock; typedef
24 std::chrono::time_point<Clock, Duration> t = Duration(3);
H A Dconvert.fail.cpp23 typedef std::chrono::system_clock Clock; typedef
27 std::chrono::time_point<Clock, Duration2> t2(Duration2(3));
28 std::chrono::time_point<Clock, Duration1> t1 = t2;
H A Dconvert.pass.cpp22 typedef std::chrono::system_clock Clock; typedef
26 std::chrono::time_point<Clock, Duration2> t2(Duration2(3));
27 std::chrono::time_point<Clock, Duration1> t1 = t2;
32 constexpr std::chrono::time_point<Clock, Duration2> t2(Duration2(3));
33 constexpr std::chrono::time_point<Clock, Duration1> t1 = t2;
H A Ddefault.pass.cpp23 typedef std::chrono::system_clock Clock; typedef
26 std::chrono::time_point<Clock, Duration> t;
31 constexpr std::chrono::time_point<Clock, Duration> t;
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.point/time.point.cast/
H A Dtoduration.fail.cpp14 // template <class ToDuration, class Clock, class Duration>
15 // time_point<Clock, ToDuration>
16 // time_point_cast(const time_point<Clock, Duration>& t);
24 typedef std::chrono::system_clock Clock; typedef
25 typedef std::chrono::time_point<Clock, std::chrono::milliseconds> FromTimePoint;
26 typedef std::chrono::time_point<Clock, std::chrono::minutes> ToTimePoint;
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.threads/thread.thread.this/
H A Dsleep_for.pass.cpp21 typedef std::chrono::system_clock Clock; typedef
22 typedef Clock::time_point time_point;
23 typedef Clock::duration duration;
25 time_point t0 = Clock::now();
27 time_point t1 = Clock::now();
H A Dsleep_until.pass.cpp12 // template <class Clock, class Duration>
13 // void sleep_until(const chrono::time_point<Clock, Duration>& abs_time);
21 typedef std::chrono::system_clock Clock; typedef
22 typedef Clock::time_point time_point;
23 typedef Clock::duration duration;
25 time_point t0 = Clock::now();
27 time_point t1 = Clock::now();
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.point/time.point.nonmember/
H A Dop_-duration.pass.cpp14 // template <class Clock, class Duration1, class Rep2, class Period2>
15 // time_point<Clock, typename common_type<Duration1, duration<Rep2, Period2>>::type>
16 // operator-(const time_point<Clock, Duration1>& lhs, const duration<Rep2, Period2>& rhs);
23 typedef std::chrono::system_clock Clock; typedef
27 std::chrono::time_point<Clock, Duration1> t1(Duration1(3));
28 std::chrono::time_point<Clock, Duration2> t2 = t1 - Duration2(5);
33 constexpr std::chrono::time_point<Clock, Duration1> t1(Duration1(3));
34 constexpr std::chrono::time_point<Clock, Duration2> t2 = t1 - Duration2(5);
H A Dop_-time_point.pass.cpp14 // template <class Clock, class Duration1, class Duration2>
16 // operator-(const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
23 typedef std::chrono::system_clock Clock; typedef
27 std::chrono::time_point<Clock, Duration1> t1(Duration1(3));
28 std::chrono::time_point<Clock, Duration2> t2(Duration2(5));
33 constexpr std::chrono::time_point<Clock, Duration1> t1(Duration1(3));
34 constexpr std::chrono::time_point<Clock, Duration2> t2(Duration2(5));
H A Dop_+.pass.cpp14 // template <class Clock, class Duration1, class Rep2, class Period2>
15 // time_point<Clock, typename common_type<Duration1, duration<Rep2, Period2>>::type>
16 // operator+(const time_point<Clock, Duration1>& lhs, const duration<Rep2, Period2>& rhs);
18 // template <class Rep1, class Period1, class Clock, class Duration2>
19 // time_point<Clock, typename common_type<duration<Rep1, Period1>, Duration2>::type>
20 // operator+(const duration<Rep1, Period1>& lhs, const time_point<Clock, Duration2>& rhs);
27 typedef std::chrono::system_clock Clock; typedef
31 std::chrono::time_point<Clock, Duration1> t1(Duration1(3));
32 std::chrono::time_point<Clock, Duration2> t2 = t1 + Duration2(5);
39 constexpr std::chrono::time_point<Clock, Duration
[all...]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/
H A Dmutex_time_point.pass.cpp14 // template <class Clock, class Duration>
15 // unique_lock(mutex_type& m, const chrono::time_point<Clock, Duration>& abs_time);
24 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();
33 std::unique_lock<std::timed_mutex> lk(m, Clock::now() + ms(300));
35 time_point t1 = Clock::now();
42 time_point t0 = Clock::now();
43 std::unique_lock<std::timed_mutex> lk(m, Clock
[all...]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/
H A Dtry_lock_shared_until.pass.cpp14 // template <class Clock, class Duration>
15 // bool try_lock_shared_until(const chrono::time_point<Clock, Duration>& abs_time);
27 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();
36 assert(m.try_lock_shared_until(Clock::now() + ms(300)) == true);
37 time_point t1 = Clock::now();
45 time_point t0 = Clock::now();
46 assert(m.try_lock_shared_until(Clock
[all...]
H A Dtry_lock_until.pass.cpp14 // template <class Clock, class Duration>
15 // bool try_lock_until(const chrono::time_point<Clock, Duration>& abs_time);
26 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();
35 assert(m.try_lock_until(Clock::now() + ms(300)) == true);
36 time_point t1 = Clock::now();
44 time_point t0 = Clock::now();
45 assert(m.try_lock_until(Clock
[all...]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/
H A Dtry_lock_until.pass.cpp14 // template <class Clock, class Duration>
15 // bool try_lock_until(const chrono::time_point<Clock, Duration>& abs_time);
24 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();
33 assert(m.try_lock_until(Clock::now() + ms(300)) == true);
34 time_point t1 = Clock::now();
42 time_point t0 = Clock::now();
43 assert(m.try_lock_until(Clock
[all...]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/
H A Dtry_lock_until.pass.cpp14 // template <class Clock, class Duration>
15 // bool try_lock_until(const chrono::time_point<Clock, Duration>& abs_time);
24 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();
33 assert(m.try_lock_until(Clock::now() + ms(300)) == true);
34 time_point t1 = Clock::now();
44 time_point t0 = Clock::now();
45 assert(m.try_lock_until(Clock
[all...]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.condition/thread.condition.condvar/
H A Dwait_until.pass.cpp14 // template <class Clock, class Duration>
17 // const chrono::time_point<Clock, Duration>& abs_time);
25 struct Clock struct
30 typedef std::chrono::time_point<Clock> time_point;
56 Clock::time_point t0 = Clock::now();
57 Clock::time_point t = t0 + Clock::duration(250);
60 Clock::time_point t1 = Clock
[all...]
H A Dwait_until_pred.pass.cpp14 // template <class Clock, class Duration, class Predicate>
17 // const chrono::time_point<Clock, Duration>& abs_time,
26 struct Clock struct
31 typedef std::chrono::time_point<Clock> time_point;
66 Clock::time_point t0 = Clock::now();
67 Clock::time_point t = t0 + Clock::duration(250);
69 Clock::time_point t1 = Clock
[all...]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.condition/thread.condition.condvarany/
H A Dwait_until.pass.cpp14 // template <class Lock, class Clock, class Duration>
16 // wait_until(Lock& lock, const chrono::time_point<Clock, Duration>& abs_time);
24 struct Clock struct
29 typedef std::chrono::time_point<Clock> time_point;
59 Clock::time_point t0 = Clock::now();
60 Clock::time_point t = t0 + Clock::duration(250);
63 Clock::time_point t1 = Clock
[all...]
H A Dwait_until_pred.pass.cpp17 // const chrono::time_point<Clock, Duration>& abs_time,
26 struct Clock struct
31 typedef std::chrono::time_point<Clock> time_point;
70 Clock::time_point t0 = Clock::now();
71 Clock::time_point t = t0 + Clock::duration(250);
73 Clock::time_point t1 = Clock::now();
76 assert(t1 - t0 < Clock
[all...]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/
H A Dtry_lock_until.pass.cpp14 // template <class Clock, class Duration>
15 // bool try_lock_until(const chrono::time_point<Clock, Duration>& abs_time);
26 template <class Clock, class Duration>
27 bool try_lock_shared_until(const std::chrono::time_point<Clock, Duration>& abs_time)
30 assert(Clock::now() - abs_time < ms(5));
44 typedef std::chrono::steady_clock Clock;
46 assert(lk.try_lock_until(Clock::now()) == true);
51 lk.try_lock_until(Clock::now());
59 assert(lk.try_lock_until(Clock::now()) == false);
65 lk.try_lock_until(Clock
[all...]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/
H A Dtry_lock_until.pass.cpp14 // template <class Clock, class Duration>
15 // bool try_lock_until(const chrono::time_point<Clock, Duration>& abs_time);
24 template <class Clock, class Duration>
25 bool try_lock_until(const std::chrono::time_point<Clock, Duration>& abs_time)
28 assert(Clock::now() - abs_time < ms(5));
39 typedef std::chrono::steady_clock Clock;
41 assert(lk.try_lock_until(Clock::now()) == true);
46 lk.try_lock_until(Clock::now());
54 assert(lk.try_lock_until(Clock::now()) == false);
60 lk.try_lock_until(Clock
[all...]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/
H A Dclock.h15 class Clock class
20 typedef std::chrono::time_point<Clock, duration> time_point;
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.point/time.point.arithmetic/
H A Dop_+=.pass.cpp21 typedef std::chrono::system_clock Clock; typedef
23 std::chrono::time_point<Clock, Duration> t(Duration(3));
H A Dop_+EQ.pass.cpp21 typedef std::chrono::system_clock Clock; typedef
23 std::chrono::time_point<Clock, Duration> t(Duration(3));

Completed in 644 milliseconds

1234