Home
last modified time | relevance | path

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

12345

/external/libcxx/src/
Dchrono.cpp67 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/
Dchrono106 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/
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.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.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_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()
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()
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/
Dtry_lock_until.pass.cpp32 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()
Dtry_lock_for.pass.cpp32 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()
Dlock_shared.pass.cpp32 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()
Dtry_lock_shared_until.pass.cpp33 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()
Dtry_lock_shared_for.pass.cpp33 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/
Dmutex_duration.pass.cpp29 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()
Dmutex_time_point.pass.cpp29 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/
Dlock_shared.pass.cpp32 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/
Dmutex.pass.cpp30 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()
Dmutex_duration.pass.cpp33 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()
Dmutex_time_point.pass.cpp33 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/
Dop_+.pass.cpp33 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()
Dop_-duration.pass.cpp26 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/
Dwait.pass.cpp55 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/
Dwait.pass.cpp55 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()

12345