Home
last modified time | relevance | path

Searched refs:time_point (Results 1 – 25 of 99) sorted by relevance

1234

/external/libcxx/test/std/thread/futures/futures.async/
Dasync.pass.cpp72 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/
Dchrono103 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/
Dchrono.cpp36 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/
Dwait_until.pass.cpp32 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()
Dwait_until_pred.pass.cpp33 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/
Dwait_until.pass.cpp31 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()
Dwait_until_pred.pass.cpp33 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/
Dtry_lock_for.pass.cpp28 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()
Dtry_lock_until.pass.cpp30 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()
Dtry_lock_shared_for.pass.cpp29 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()
Dlock_shared.pass.cpp28 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()
Dtry_lock_shared_until.pass.cpp29 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/
Dtry_lock_for.pass.cpp27 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()
Dtry_lock_until.pass.cpp27 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/
Dtry_lock_until.pass.cpp27 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()
Dtry_lock_for.pass.cpp27 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/
Dmutex_duration.pass.cpp27 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()
Dmutex_time_point.pass.cpp27 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/
Dlock_shared.pass.cpp28 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/
Dmutex.pass.cpp29 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()
Dmutex_duration.pass.cpp30 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()
Dmutex_time_point.pass.cpp30 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/
Dop_+.pass.cpp31 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/
Dwait.pass.cpp54 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/
Dwait.pass.cpp54 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()

1234