Home
last modified time | relevance | path

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

12345678

/external/libcxx/src/
Dchrono.cpp50 system_clock::time_point
76 return time_point(duration_cast<duration>(d - nt_to_unix_epoch)); in now()
82 return time_point(seconds(tp.tv_sec) + microseconds(tp.tv_nsec / 1000)); in now()
86 return time_point(seconds(tv.tv_sec) + microseconds(tv.tv_usec)); in now()
92 system_clock::to_time_t(const time_point& t) _NOEXCEPT in to_time_t()
97 system_clock::time_point
100 return system_clock::time_point(seconds(t)); in from_time_t()
116 steady_clock::time_point
122 return time_point(seconds(tp.tv_sec) + nanoseconds(tp.tv_nsec)); in now()
171 steady_clock::time_point
[all …]
/external/Reactive-Extensions/RxCpp/Rx/v2/test/operators/
Dtimestamp.cpp8 typedef rxsc::detail::test_type::clock_type::time_point time_point; typedef
28 … auto required = std::vector<rxsc::test::messages<std::pair<int, time_point>>::recorded_type>();
46 typedef rxsc::detail::test_type::clock_type::time_point time_point; typedef
52 const rxsc::test::messages<std::pair<int, time_point>> on_timestamp;
90 typedef clock_type::time_point time_point; typedef
96 const rxsc::test::messages<std::pair<int, time_point>> on_timestamp;
115 … on_timestamp.next(210, std::make_pair(2, clock_type::time_point(milliseconds(210)))),
116 … on_timestamp.next(240, std::make_pair(3, clock_type::time_point(milliseconds(240)))),
138 typedef clock_type::time_point time_point; typedef
144 const rxsc::test::messages<std::pair<int, time_point>> on_timestamp;
[all …]
Ddistinct.cpp510 const rxsc::test::messages<system_clock::time_point> on;
513 on.next(150, system_clock::time_point{ system_clock::duration{ 10 } }),
514 on.next(210, system_clock::time_point{ system_clock::duration{ 20 } }),
515 on.next(220, system_clock::time_point{ system_clock::duration{ 20 } }),
516 on.next(230, system_clock::time_point{ system_clock::duration{ 100 } }),
517 on.next(240, system_clock::time_point{ system_clock::duration{ 100 } }),
533 on.next(210, system_clock::time_point{ system_clock::duration{ 20 } }),
534 on.next(230, system_clock::time_point{ system_clock::duration{ 100 } }),
558 const rxsc::test::messages<high_resolution_clock::time_point> on;
561 … on.next(150, high_resolution_clock::time_point{ high_resolution_clock::duration{ 10 } }),
[all …]
/external/grpc-grpc/src/cpp/util/
Dtime_cc.cc31 void Timepoint2Timespec(const system_clock::time_point& from, in Timepoint2Timespec()
35 if (from == system_clock::time_point::max() || in Timepoint2Timespec()
47 void TimepointHR2Timespec(const high_resolution_clock::time_point& from, in TimepointHR2Timespec()
51 if (from == high_resolution_clock::time_point::max() || in TimepointHR2Timespec()
63 system_clock::time_point Timespec2Timepoint(gpr_timespec t) { in Timespec2Timepoint()
65 return system_clock::time_point::max(); in Timespec2Timepoint()
68 system_clock::time_point tp; in Timespec2Timepoint()
69 tp += duration_cast<system_clock::time_point::duration>(seconds(t.tv_sec)); in Timespec2Timepoint()
71 duration_cast<system_clock::time_point::duration>(nanoseconds(t.tv_nsec)); in Timespec2Timepoint()
/external/Reactive-Extensions/RxCpp/Rx/v2/examples/doxygen/
Dtimestamp.cpp9 typedef rxcpp::schedulers::scheduler::clock_type::time_point time_point; typedef
15 time_point start = rxcpp::identity_current_thread().now();
18 [&](std::pair<long, time_point> v) { in __anoncbcd9e050102()
39 typedef rxcpp::schedulers::scheduler::clock_type::time_point time_point; typedef
45 time_point start = rxcpp::identity_current_thread().now();
48 [&](std::pair<long, time_point> v) { in __anoncbcd9e050402()
/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/grpc-grpc/test/cpp/util/
Dtime_test.cc36 system_clock::time_point tp{microseconds(us)}; in TEST_F()
37 system_clock::time_point tp_converted = Timespec2Timepoint(ts); in TEST_F()
42 system_clock::time_point tp_converted_2 = Timespec2Timepoint(ts_converted); in TEST_F()
49 EXPECT_EQ(system_clock::time_point::max(), in TEST_F()
52 Timepoint2Timespec(system_clock::time_point::max(), &from_time_point_max); in TEST_F()
57 std::chrono::time_point<system_clock, std::chrono::seconds>::max(), in TEST_F()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/
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()
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()
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/
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()
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()
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_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()
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()
/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_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.pass.cpp33 typedef Clock::time_point time_point; typedef
53 time_point t0 = Clock::now(); in f()
54 time_point t1; in f()
65 time_point t0 = Clock::now(); in g()
66 time_point t1; in g()
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()

12345678