/external/libcxx/src/ |
D | chrono.cpp | 67 system_clock::time_point 93 return time_point(duration_cast<duration>(d - nt_to_unix_epoch)); in now() 99 return time_point(seconds(tp.tv_sec) + microseconds(tp.tv_nsec / 1000)); in now() 103 return time_point(seconds(tv.tv_sec) + microseconds(tv.tv_usec)); in now() 109 system_clock::to_time_t(const time_point& t) _NOEXCEPT in to_time_t() 114 system_clock::time_point 117 return system_clock::time_point(seconds(t)); in from_time_t() 133 steady_clock::time_point 139 return time_point(seconds(tp.tv_sec) + nanoseconds(tp.tv_nsec)); in now() 188 steady_clock::time_point [all …]
|
/external/libcxx/include/ |
D | chrono | 106 class time_point 117 time_point(); // has value "epoch" // constexpr in C++14 118 explicit time_point(const duration& d); // same as time_point() + d // constexpr in C++14 122 time_point(const time_point<clock, Duration2>& t); // constexpr in C++14 130 time_point& operator+=(const duration& d); 131 time_point& operator-=(const duration& d); 135 static constexpr time_point min(); 136 static constexpr time_point max(); 146 struct common_type<chrono::time_point<Clock, Duration1>, chrono::time_point<Clock, Duration2>>; 207 // time_point arithmetic (all constexpr in C++14) [all …]
|
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvarany/ |
D | wait_until.pass.cpp | 31 typedef std::chrono::time_point<Clock> time_point; typedef 34 static time_point now() in now() 37 return time_point(duration_cast<duration>( in now() 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()
|
D | wait_until_pred.pass.cpp | 33 typedef std::chrono::time_point<Clock> time_point; typedef 36 static time_point now() in now() 39 return time_point(duration_cast<duration>( in now() 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()
|
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvar/ |
D | wait_until.pass.cpp | 32 typedef std::chrono::time_point<Clock> time_point; typedef 35 static time_point now() in now() 38 return time_point(duration_cast<duration>( in now() 58 Clock::time_point t0 = Clock::now(); in f() 59 Clock::time_point t = t0 + Clock::duration(250); in f() 62 Clock::time_point t1 = Clock::now(); in f()
|
D | wait_until_pred.pass.cpp | 33 typedef std::chrono::time_point<Clock> time_point; typedef 36 static time_point now() in now() 39 return time_point(duration_cast<duration>( in now() 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()
|
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/ |
D | try_lock_for.pass.cpp | 27 typedef Clock::time_point time_point; typedef 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()
|
D | try_lock_until.pass.cpp | 27 typedef Clock::time_point time_point; typedef 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/ |
D | try_lock_for.pass.cpp | 27 typedef Clock::time_point time_point; typedef 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()
|
D | try_lock_until.pass.cpp | 27 typedef Clock::time_point time_point; typedef 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.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/ |
D | try_lock_until.pass.cpp | 32 typedef Clock::time_point time_point; typedef 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()
|
D | try_lock_for.pass.cpp | 32 typedef Clock::time_point time_point; typedef 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()
|
D | lock_shared.pass.cpp | 32 typedef Clock::time_point time_point; typedef 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()
|
D | try_lock_shared_until.pass.cpp | 33 typedef Clock::time_point time_point; typedef 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()
|
D | try_lock_shared_for.pass.cpp | 33 typedef Clock::time_point time_point; typedef 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()
|
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/ |
D | mutex_duration.pass.cpp | 29 typedef Clock::time_point time_point; typedef 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()
|
D | mutex_time_point.pass.cpp | 29 typedef Clock::time_point time_point; typedef 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/std/thread/thread.mutex/thread.mutex.requirements/thread.shared_mutex.requirements/thread.shared_mutex.class/ |
D | lock_shared.pass.cpp | 32 typedef Clock::time_point time_point; typedef 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()
|
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/ |
D | mutex.pass.cpp | 30 typedef Clock::time_point time_point; typedef 50 time_point t0 = Clock::now(); in f() 51 time_point t1; in f() 62 time_point t0 = Clock::now(); in g() 63 time_point t1; in g()
|
D | mutex_duration.pass.cpp | 33 typedef Clock::time_point time_point; typedef 52 time_point t0 = Clock::now(); in f1() 55 time_point t1 = Clock::now(); in f1() 62 time_point t0 = Clock::now(); in f2() 65 time_point t1 = Clock::now(); in f2()
|
D | mutex_time_point.pass.cpp | 33 typedef Clock::time_point time_point; typedef 51 time_point t0 = Clock::now(); in f1() 54 time_point t1 = Clock::now(); in f1() 61 time_point t0 = Clock::now(); in f2() 64 time_point t1 = Clock::now(); in f2()
|
/external/libcxx/test/std/utilities/time/time.point/time.point.nonmember/ |
D | op_+.pass.cpp | 33 std::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main() 34 std::chrono::time_point<Clock, Duration2> t2 = t1 + Duration2(5); in main() 41 constexpr std::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main() 42 constexpr std::chrono::time_point<Clock, Duration2> t2 = t1 + Duration2(5); in main() 44 constexpr std::chrono::time_point<Clock, Duration2> t3 = Duration2(6) + t1; in main()
|
D | op_-duration.pass.cpp | 26 typedef std::chrono::time_point<std::chrono::system_clock> TimePoint; in test2739() 40 std::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main() 41 std::chrono::time_point<Clock, Duration2> t2 = t1 - Duration2(5); in main() 46 constexpr std::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main() 47 constexpr std::chrono::time_point<Clock, Duration2> t2 = t1 - Duration2(5); in main()
|
/external/libcxx/test/std/thread/futures/futures.shared_future/ |
D | wait.pass.cpp | 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()
|
/external/libcxx/test/std/thread/futures/futures.unique_future/ |
D | wait.pass.cpp | 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()
|