Home
last modified time | relevance | path

Searched refs:Duration (Results 1 – 17 of 17) sorted by relevance

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.point/time.point.cons/
Dduration.pass.cpp22 typedef std::chrono::milliseconds Duration; in main() typedef
24 std::chrono::time_point<Clock, Duration> t(Duration(3)); in main()
25 assert(t.time_since_epoch() == Duration(3)); in main()
28 std::chrono::time_point<Clock, Duration> t(std::chrono::seconds(3)); in main()
29 assert(t.time_since_epoch() == Duration(3000)); in main()
33 constexpr std::chrono::time_point<Clock, Duration> t(Duration(3)); in main()
34 static_assert(t.time_since_epoch() == Duration(3), ""); in main()
37 constexpr std::chrono::time_point<Clock, Duration> t(std::chrono::seconds(3)); in main()
38 static_assert(t.time_since_epoch() == Duration(3000), ""); in main()
Ddefault.pass.cpp24 typedef std::chrono::duration<Rep, std::milli> Duration; in main() typedef
26 std::chrono::time_point<Clock, Duration> t; in main()
27 assert(t.time_since_epoch() == Duration::zero()); in main()
31 constexpr std::chrono::time_point<Clock, Duration> t; in main()
32 static_assert(t.time_since_epoch() == Duration::zero(), ""); in main()
Dduration.fail.cpp23 typedef std::chrono::milliseconds Duration; in main() typedef
24 std::chrono::time_point<Clock, Duration> t = Duration(3); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.point/time.point.arithmetic/
Dop_-EQ.pass.cpp22 typedef std::chrono::milliseconds Duration; in main() typedef
23 std::chrono::time_point<Clock, Duration> t(Duration(3)); in main()
24 t -= Duration(2); in main()
25 assert(t.time_since_epoch() == Duration(1)); in main()
Dop_-=.pass.cpp22 typedef std::chrono::milliseconds Duration; in main() typedef
23 std::chrono::time_point<Clock, Duration> t(Duration(3)); in main()
24 t -= Duration(2); in main()
25 assert(t.time_since_epoch() == Duration(1)); in main()
Dop_+EQ.pass.cpp22 typedef std::chrono::milliseconds Duration; in main() typedef
23 std::chrono::time_point<Clock, Duration> t(Duration(3)); in main()
24 t += Duration(2); in main()
25 assert(t.time_since_epoch() == Duration(5)); in main()
Dop_+=.pass.cpp22 typedef std::chrono::milliseconds Duration; in main() typedef
23 std::chrono::time_point<Clock, Duration> t(Duration(3)); in main()
24 t += Duration(2); in main()
25 assert(t.time_since_epoch() == Duration(5)); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.point/time.point.special/
Dmin.pass.cpp22 typedef std::chrono::milliseconds Duration; in main() typedef
23 typedef std::chrono::time_point<Clock, Duration> TP; in main()
24 assert(TP::min() == TP(Duration::min())); in main()
Dmax.pass.cpp22 typedef std::chrono::milliseconds Duration; in main() typedef
23 typedef std::chrono::time_point<Clock, Duration> TP; in main()
24 assert(TP::max() == TP(Duration::max())); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/
Dcondition_variable38 template <class Clock, class Duration>
41 const chrono::time_point<Clock, Duration>& abs_time);
43 template <class Clock, class Duration, class Predicate>
46 const chrono::time_point<Clock, Duration>& abs_time,
83 template <class Lock, class Clock, class Duration>
86 const chrono::time_point<Clock, Duration>& abs_time);
88 template <class Lock, class Clock, class Duration, class Predicate>
91 const chrono::time_point<Clock, Duration>& abs_time,
Dshared_mutex36 template <class Clock, class Duration>
37 bool try_lock_until(const chrono::time_point<Clock, Duration>& abs_time);
46 template <class Clock, class Duration>
48 try_lock_shared_until(const chrono::time_point<Clock, Duration>& abs_time);
64 template <class Clock, class Duration>
66 const chrono::time_point<Clock, Duration>& abs_time);
82 template <class Clock, class Duration>
83 bool try_lock_until(const chrono::time_point<Clock, Duration>& abs_time);
319 template <class Clock, class Duration>
320 bool try_lock_until(const chrono::time_point<Clock, Duration>& abs_time);
Dmutex67 template <class Clock, class Duration>
68 bool try_lock_until(const chrono::time_point<Clock, Duration>& abs_time);
85 template <class Clock, class Duration>
86 bool try_lock_until(const chrono::time_point<Clock, Duration>& abs_time);
122 template <class Clock, class Duration>
123 unique_lock(mutex_type& m, const chrono::time_point<Clock, Duration>& abs_time);
139 template <class Clock, class Duration>
140 bool try_lock_until(const chrono::time_point<Clock, Duration>& abs_time);
Dchrono102 template <class Clock, class Duration = typename Clock::duration>
107 typedef Duration duration;
227 template <class ToDuration, class Clock, class Duration>
228 time_point<Clock, ToDuration> time_point_cast(const time_point<Clock, Duration>& t);
516 // Duration ==
546 // Duration !=
557 // Duration <
587 // Duration >
598 // Duration <=
609 // Duration >=
[all …]
Dfuture171 template <class Clock, class Duration>
173 wait_until(const chrono::time_point<Clock, Duration>& abs_time) const;
198 template <class Clock, class Duration>
200 wait_until(const chrono::time_point<Clock, Duration>& abs_time) const;
225 template <class Clock, class Duration>
227 wait_until(const chrono::time_point<Clock, Duration>& abs_time) const;
252 template <class Clock, class Duration>
254 wait_until(const chrono::time_point<Clock, Duration>& abs_time) const;
279 template <class Clock, class Duration>
281 wait_until(const chrono::time_point<Clock, Duration>& abs_time) const;
[all …]
Dthread76 template <class Clock, class Duration>
77 void sleep_until(const chrono::time_point<Clock, Duration>& abs_time);
/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()
/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()