/external/libcxx/test/std/thread/futures/futures.async/ |
D | async.pass.cpp | 72 Clock::time_point t0 = Clock::now(); in main() 74 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() 88 Clock::time_point t0 = Clock::now(); in main() 90 Clock::time_point t1 = Clock::now(); in main() 96 Clock::time_point t0 = Clock::now(); in main() 98 Clock::time_point t1 = Clock::now(); in main() 105 Clock::time_point t0 = Clock::now(); in main() 107 Clock::time_point t1 = Clock::now(); in main() [all …]
|
/external/libcxx/include/ |
D | chrono | 103 class time_point 114 time_point(); // has value "epoch" // constexpr in C++14 115 explicit time_point(const duration& d); // same as time_point() + d // constexpr in C++14 119 time_point(const time_point<clock, Duration2>& t); // constexpr in C++14 127 time_point& operator+=(const duration& d); 128 time_point& operator-=(const duration& d); 132 static constexpr time_point min(); 133 static constexpr time_point max(); 143 struct common_type<chrono::time_point<Clock, Duration1>, chrono::time_point<Clock, Duration2>>; 197 // time_point arithmetic (all constexpr in C++14) [all …]
|
/external/libcxx/src/ |
D | chrono.cpp | 36 system_clock::time_point 43 return time_point(seconds(tp.tv_sec) + microseconds(tp.tv_nsec / 1000)); in now() 47 return time_point(seconds(tv.tv_sec) + microseconds(tv.tv_usec)); in now() 52 system_clock::to_time_t(const time_point& t) _NOEXCEPT in to_time_t() 57 system_clock::time_point 60 return system_clock::time_point(seconds(t)); in from_time_t() 74 steady_clock::time_point 80 return time_point(seconds(tp.tv_sec) + nanoseconds(tp.tv_nsec)); in now() 134 steady_clock::time_point 138 return time_point(duration(fp())); in now()
|
/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.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.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/ |
D | try_lock_for.pass.cpp | 28 typedef Clock::time_point time_point; typedef 35 time_point t0 = Clock::now(); in f1() 37 time_point t1 = Clock::now(); in f1() 45 time_point t0 = Clock::now(); in f2() 47 time_point t1 = Clock::now(); in f2()
|
D | try_lock_until.pass.cpp | 30 typedef Clock::time_point time_point; typedef 37 time_point t0 = Clock::now(); in f1() 39 time_point t1 = Clock::now(); in f1() 47 time_point t0 = Clock::now(); in f2() 49 time_point t1 = Clock::now(); in f2()
|
D | try_lock_shared_for.pass.cpp | 29 typedef Clock::time_point time_point; typedef 36 time_point t0 = Clock::now(); in f1() 38 time_point t1 = Clock::now(); in f1() 46 time_point t0 = Clock::now(); in f2() 48 time_point t1 = Clock::now(); in f2()
|
D | lock_shared.pass.cpp | 28 typedef Clock::time_point time_point; typedef 35 time_point t0 = Clock::now(); in f() 37 time_point t1 = Clock::now(); in f() 45 time_point t0 = Clock::now(); in g() 47 time_point t1 = Clock::now(); in g()
|
D | try_lock_shared_until.pass.cpp | 29 typedef Clock::time_point time_point; typedef 36 time_point t0 = Clock::now(); in f1() 38 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/ |
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_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()
|
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()
|
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/ |
D | mutex_duration.pass.cpp | 27 typedef Clock::time_point time_point; typedef 34 time_point t0 = Clock::now(); in f1() 37 time_point t1 = Clock::now(); in f1() 44 time_point t0 = Clock::now(); in f2() 47 time_point t1 = Clock::now(); in f2()
|
D | mutex_time_point.pass.cpp | 27 typedef Clock::time_point time_point; typedef 34 time_point t0 = Clock::now(); in f1() 37 time_point t1 = Clock::now(); in f1() 44 time_point t0 = Clock::now(); in f2() 47 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 | 28 typedef Clock::time_point time_point; typedef 35 time_point t0 = Clock::now(); in f() 37 time_point t1 = Clock::now(); in f() 45 time_point t0 = Clock::now(); in g() 47 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 | 29 typedef Clock::time_point time_point; typedef 36 time_point t0 = Clock::now(); in f() 37 time_point t1; in f() 48 time_point t0 = Clock::now(); in g() 49 time_point t1; in g()
|
D | mutex_duration.pass.cpp | 30 typedef Clock::time_point time_point; typedef 37 time_point t0 = Clock::now(); in f1() 40 time_point t1 = Clock::now(); in f1() 47 time_point t0 = Clock::now(); in f2() 50 time_point t1 = Clock::now(); in f2()
|
D | mutex_time_point.pass.cpp | 30 typedef Clock::time_point time_point; typedef 37 time_point t0 = Clock::now(); in f1() 40 time_point t1 = Clock::now(); in f1() 47 time_point t0 = Clock::now(); in f2() 50 time_point t1 = Clock::now(); in f2()
|
/external/libcxx/test/std/utilities/time/time.point/time.point.nonmember/ |
D | op_+.pass.cpp | 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()
|
/external/libcxx/test/std/thread/futures/futures.unique_future/ |
D | wait.pass.cpp | 54 Clock::time_point t0 = Clock::now(); in main() 56 Clock::time_point t1 = Clock::now(); in main() 68 Clock::time_point t0 = Clock::now(); in main() 70 Clock::time_point t1 = Clock::now(); in main() 82 Clock::time_point t0 = Clock::now(); in main() 84 Clock::time_point t1 = Clock::now(); in main()
|
/external/libcxx/test/std/thread/futures/futures.shared_future/ |
D | wait.pass.cpp | 54 Clock::time_point t0 = Clock::now(); in main() 56 Clock::time_point t1 = Clock::now(); in main() 68 Clock::time_point t0 = Clock::now(); in main() 70 Clock::time_point t1 = Clock::now(); in main() 82 Clock::time_point t0 = Clock::now(); in main() 84 Clock::time_point t1 = Clock::now(); in main()
|