Home
last modified time | relevance | path

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

1234567

/llvm-project-15.0.7/libcxx/include/__chrono/
H A Dtime_point.h31 class _LIBCPP_TEMPLATE_VIS time_point
50 time_point(const time_point<clock, _Duration2>& __t,
85 time_point<_Clock, _ToDuration>
97 time_point<_Clock, _ToDuration>
109 time_point<_Clock, _ToDuration>
121 time_point<_Clock, _ToDuration>
146 operator==(const time_point<_Clock, _Duration1>& __lhs, const time_point<_Clock, _Duration2>& __rhs)
156 operator!=(const time_point<_Clock, _Duration1>& __lhs, const time_point<_Clock, _Duration2>& __rhs)
166 operator<(const time_point<_Clock, _Duration1>& __lhs, const time_point<_Clock, _Duration2>& __rhs)
176 operator>(const time_point<_Clock, _Duration1>& __lhs, const time_point<_Clock, _Duration2>& __rhs)
[all …]
H A Dsystem_clock.h33 typedef chrono::time_point<system_clock> time_point; typedef
36 static time_point now() _NOEXCEPT;
37 static time_t to_time_t (const time_point& __t) _NOEXCEPT;
38 static time_point from_time_t(time_t __t) _NOEXCEPT;
44 using sys_time = time_point<system_clock, _Duration>;
/llvm-project-15.0.7/libcxx/src/
H A Dchrono.cpp94 static system_clock::time_point __libcpp_system_clock_now() { in __libcpp_system_clock_now()
121 static system_clock::time_point __libcpp_system_clock_now() {
130 static system_clock::time_point __libcpp_system_clock_now() {
140 system_clock::time_point
147 system_clock::to_time_t(const time_point& t) noexcept in to_time_t()
152 system_clock::time_point
155 return system_clock::time_point(seconds(t)); in from_time_t()
216 static steady_clock::time_point __libcpp_steady_clock_now() { in __libcpp_steady_clock_now()
228 static steady_clock::time_point __libcpp_steady_clock_now() { in __libcpp_steady_clock_now()
252 static steady_clock::time_point __libcpp_steady_clock_now() { in __libcpp_steady_clock_now()
[all …]
/llvm-project-15.0.7/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/
H A Dlock_shared.pass.cpp37 typedef Clock::time_point time_point; typedef
43 time_point readerStart; // Protected by the above mutex 'm'
44 time_point writerStart; // Protected by the above mutex 'm'
51 time_point t1 = Clock::now(); in readerMustWait()
52 time_point t0 = readerStart; in readerMustWait()
67 time_point t1 = Clock::now(); in writerMustWait()
68 time_point t0 = writerStart; in writerMustWait()
H A Dtry_lock_for.pass.cpp34 typedef Clock::time_point time_point; typedef
53 time_point t0 = Clock::now(); in f1()
55 time_point t1 = Clock::now(); in f1()
63 time_point t0 = Clock::now(); in f2()
65 time_point t1 = Clock::now(); in f2()
H A Dtry_lock_until.pass.cpp35 typedef Clock::time_point time_point; typedef
54 time_point t0 = Clock::now(); in f1()
56 time_point t1 = Clock::now(); in f1()
64 time_point t0 = Clock::now(); in f2()
66 time_point t1 = Clock::now(); in f2()
H A Dtry_lock_shared_for.pass.cpp36 typedef Clock::time_point time_point; typedef
54 time_point t0 = Clock::now(); in f1()
56 time_point t1 = Clock::now(); in f1()
64 time_point t0 = Clock::now(); in f2()
66 time_point t1 = Clock::now(); in f2()
H A Dlock.pass.cpp36 typedef Clock::time_point time_point; typedef
42 time_point start;
50 time_point t0 = start; in f()
51 time_point t1 = Clock::now(); in f()
/llvm-project-15.0.7/libcxx/test/std/thread/thread.condition/thread.condition.condvarany/
H A Dwait_until.pass.cpp34 typedef std::chrono::time_point<Clock> time_point; typedef
37 static time_point now() in now()
40 return time_point(duration_cast<duration>( in now()
64 Clock::time_point t0 = Clock::now(); in f()
65 Clock::time_point t = t0 + Clock::duration(250); in f()
68 Clock::time_point t1 = Clock::now(); in f()
H A Dwait_until_pred.pass.cpp36 typedef std::chrono::time_point<Clock> time_point; typedef
39 static time_point now() in now()
42 return time_point(duration_cast<duration>( in now()
75 Clock::time_point t0 = Clock::now(); in f()
76 Clock::time_point t = t0 + Clock::duration(250); in f()
78 Clock::time_point t1 = Clock::now(); in f()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dspuriously-wake-up-functions.cpp34 class time_point { class
40 constexpr time_point();
41 constexpr explicit time_point(const duration &d);
43 constexpr time_point(const time_point<clock, Duration2> &t);
53 typedef chrono::time_point<system_clock> time_point; typedef in std::chrono::system_clock
55 static time_point now() noexcept;
93 const chrono::time_point<Clock, Duration> &abs_time){}; in wait_until()
96 const chrono::time_point<Clock, Duration> &abs_time, in wait_until()
/llvm-project-15.0.7/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/
H A 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()
H A Dtry_lock_for.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()
/llvm-project-15.0.7/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/
H A Dtry_lock_for.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()
49 time_point t0 = Clock::now(); in f2()
51 time_point t1 = Clock::now(); in f2()
H A 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()
49 time_point t0 = Clock::now(); in f2()
51 time_point t1 = Clock::now(); in f2()
/llvm-project-15.0.7/libcxx/test/std/thread/thread.condition/thread.condition.condvar/
H A Dwait_until.pass.cpp35 typedef std::chrono::time_point<TestClock> time_point; typedef
38 static time_point now() in now()
41 return time_point(duration_cast<duration>( in now()
62 typename Clock::time_point t0 = Clock::now(); in f()
63 typename Clock::time_point t = t0 + std::chrono::milliseconds(250); in f()
66 typename Clock::time_point t1 = Clock::now(); in f()
H A Dwait_until_pred.pass.cpp36 typedef std::chrono::time_point<Clock> time_point; typedef
39 static time_point now() in now()
42 return time_point(duration_cast<duration>( in now()
71 Clock::time_point t0 = Clock::now(); in f()
72 Clock::time_point t = t0 + Clock::duration(250); in f()
74 Clock::time_point t1 = Clock::now(); in f()
/llvm-project-15.0.7/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/
H A 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()
H A 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()
/llvm-project-15.0.7/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.shared_mutex.requirements/thread.shared_mutex.class/
H A Dlock_shared.pass.cpp35 typedef Clock::time_point time_point; typedef
53 time_point t0 = Clock::now(); in f()
55 time_point t1 = Clock::now(); in f()
63 time_point t0 = Clock::now(); in g()
65 time_point t1 = Clock::now(); in g()
/llvm-project-15.0.7/libcxx/test/std/time/time.clock/time.clock.file/
H A Dto_from_sys.pass.cpp31 std::chrono::file_clock::time_point const ft = std::chrono::file_clock::now(); in main()
38 std::chrono::system_clock::time_point const st = std::chrono::system_clock::now(); in main()
45 std::chrono::file_clock::time_point const file_now = std::chrono::file_clock::now(); in main()
46 std::chrono::system_clock::time_point const sys_now = std::chrono::system_clock::now(); in main()
59 std::chrono::file_clock::time_point const ft = std::chrono::file_clock::now(); in main()
60 std::chrono::system_clock::time_point const st = std::chrono::system_clock::now(); in main()
/llvm-project-15.0.7/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/
H A Dmutex_time_point.pass.cpp36 typedef Clock::time_point time_point; typedef
51 time_point t0 = Clock::now(); in f1()
53 time_point t1 = Clock::now(); in f1()
60 time_point t0 = Clock::now(); in f2()
62 time_point t1 = Clock::now(); in f2()
H A Dmutex.pass.cpp35 typedef Clock::time_point time_point; typedef
55 time_point t0 = Clock::now(); in f()
56 time_point t1; in f()
67 time_point t0 = Clock::now(); in g()
68 time_point t1; in g()
/llvm-project-15.0.7/libcxx/test/std/time/time.point/time.point.nonmember/
H A Dop_+.pass.cpp32 std::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main()
33 std::chrono::time_point<Clock, Duration2> t2 = t1 + Duration2(5); in main()
40 constexpr std::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main()
41 constexpr std::chrono::time_point<Clock, Duration2> t2 = t1 + Duration2(5); in main()
43 constexpr std::chrono::time_point<Clock, Duration2> t3 = Duration2(6) + t1; in main()
/llvm-project-15.0.7/libcxx/include/
H A Dchrono109 class time_point
121 explicit time_point(const duration& d); // same as time_point() + d // constexpr in C++14
125 time_point(const time_point<clock, Duration2>& t); // constexpr in C++14
149 struct common_type<chrono::time_point<Clock, Duration1>, chrono::time_point<Clock, Duration2>>;
224 operator-(const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
228 … bool operator==(const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
243 time_point<Clock, ToDuration> time_point_cast(const time_point<Clock, Duration>& t);
268 typedef chrono::time_point<system_clock> time_point;
287 typedef chrono::time_point<file_clock> time_point;
308 typedef chrono::time_point<steady_clock, duration> time_point;
[all …]

1234567