/external/llvm-project/libcxx/src/ |
D | chrono.cpp | 51 static system_clock::time_point __libcpp_system_clock_now() { in __libcpp_system_clock_now() 70 return system_clock::time_point(duration_cast<system_clock::duration>(d - nt_to_unix_epoch)); in __libcpp_system_clock_now() 75 static system_clock::time_point __libcpp_system_clock_now() { 79 return system_clock::time_point(seconds(tp.tv_sec) + microseconds(tp.tv_nsec / 1000)); 84 static system_clock::time_point __libcpp_system_clock_now() { 87 return system_clock::time_point(seconds(tv.tv_sec) + microseconds(tv.tv_usec)); 92 const bool system_clock::is_steady; 94 system_clock::time_point 95 system_clock::now() _NOEXCEPT in now() 101 system_clock::to_time_t(const time_point& t) _NOEXCEPT in to_time_t() [all …]
|
/external/rust/crates/grpcio-sys/grpc/src/cpp/util/ |
D | time_cc.cc | 27 using std::chrono::system_clock; 31 void Timepoint2Timespec(const system_clock::time_point& from, in Timepoint2Timespec() 33 system_clock::duration deadline = from.time_since_epoch(); in Timepoint2Timespec() 35 if (from == system_clock::time_point::max() || in Timepoint2Timespec() 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/grpc-grpc/src/cpp/util/ |
D | time_cc.cc | 27 using std::chrono::system_clock; 31 void Timepoint2Timespec(const system_clock::time_point& from, in Timepoint2Timespec() 33 system_clock::duration deadline = from.time_since_epoch(); in Timepoint2Timespec() 35 if (from == system_clock::time_point::max() || in Timepoint2Timespec() 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/python/pybind11/tests/ |
D | test_chrono.cpp | 17 std::chrono::system_clock, std::chrono::hours>; 19 std::chrono::system_clock, std::chrono::minutes>; 21 std::chrono::system_clock, std::chrono::seconds>; 23 std::chrono::system_clock, std::chrono::milliseconds>; 25 std::chrono::system_clock, std::chrono::microseconds>; 34 using system_time = std::chrono::system_clock::time_point; in TEST_SUBMODULE() 38 using timestamp = std::chrono::time_point<std::chrono::system_clock, timespan>; in TEST_SUBMODULE() 42 m.def("test_chrono1", []() { return std::chrono::system_clock::now(); }); in TEST_SUBMODULE() 50 m.def("test_chrono3", [](std::chrono::system_clock::duration d) { return d; }); in TEST_SUBMODULE()
|
/external/grpc-grpc/test/cpp/util/ |
D | time_test.cc | 25 using std::chrono::system_clock; 36 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/Reactive-Extensions/RxCpp/Rx/v2/test/operators/ |
D | distinct.cpp | 366 const rxsc::test::messages<system_clock::duration> on; 369 on.next(150, system_clock::duration{ 10 }), 370 on.next(210, system_clock::duration{ 20 }), 371 on.next(220, system_clock::duration{ 20 }), 372 on.next(230, system_clock::duration{ 100 }), 373 on.next(240, system_clock::duration{ 100 }), 389 on.next(210, system_clock::duration{ 20 }), 390 on.next(230, system_clock::duration{ 100 }), 510 const rxsc::test::messages<system_clock::time_point> on; 513 on.next(150, system_clock::time_point{ system_clock::duration{ 10 } }), [all …]
|
/external/pigweed/pw_chrono_stl/ |
D | docs.rst | 15 The STL based ``system_clock`` backend implements the ``pw_chrono:system_clock`` 17 ``std::chrono::system_clock`` cannot be used as this is not always a monotonic 24 The GN build for ``pw_chrono_stl`` has one target: ``system_clock``. 25 The ``system_clock`` target provides the 28 ``pw_chrono:system_clock``.
|
/external/libcxx/src/ |
D | chrono.cpp | 48 const bool system_clock::is_steady; 50 system_clock::time_point 51 system_clock::now() _NOEXCEPT in now() 92 system_clock::to_time_t(const time_point& t) _NOEXCEPT in to_time_t() 97 system_clock::time_point 98 system_clock::from_time_t(time_t t) _NOEXCEPT in from_time_t() 100 return system_clock::time_point(seconds(t)); in from_time_t()
|
/external/pigweed/pw_sync_freertos/ |
D | BUILD.gn | 45 "$dir_pw_chrono:system_clock", 46 "$dir_pw_chrono_freertos:system_clock", 54 "$dir_pw_chrono_freertos:system_clock", 73 "$dir_pw_chrono:system_clock", 74 "$dir_pw_chrono_freertos:system_clock", 82 "$dir_pw_chrono_freertos:system_clock", 118 "$dir_pw_chrono:system_clock", 124 "$dir_pw_chrono_freertos:system_clock", 130 "$dir_pw_chrono_freertos:system_clock",
|
/external/pigweed/pw_sync_embos/ |
D | BUILD.gn | 45 "$dir_pw_chrono:system_clock", 46 "$dir_pw_chrono_embos:system_clock", 54 pw_chrono_SYSTEM_CLOCK_BACKEND == "$dir_pw_chrono_embos:system_clock", 73 "$dir_pw_chrono:system_clock", 74 "$dir_pw_chrono_embos:system_clock", 82 pw_chrono_SYSTEM_CLOCK_BACKEND == "$dir_pw_chrono_embos:system_clock", 118 "$dir_pw_chrono:system_clock", 124 "$dir_pw_chrono_embos:system_clock", 130 pw_chrono_SYSTEM_CLOCK_BACKEND == "$dir_pw_chrono_embos:system_clock",
|
/external/llvm-project/libcxx/test/std/utilities/time/time.clock/time.clock.system/ |
D | sys.time.types.pass.cpp | 30 using system_clock = std::chrono::system_clock; in main() typedef 47 ASSERT_SAME_TYPE(std::chrono::time_point<system_clock, seconds>, sys_seconds); in main() 48 ASSERT_SAME_TYPE(std::chrono::time_point<system_clock, minutes>, sys_minutes); in main() 49 ASSERT_SAME_TYPE(std::chrono::time_point<system_clock, days>, sys_days); in main()
|
/external/libcxx/test/std/utilities/time/time.clock/time.clock.system/ |
D | sys.time.types.pass.cpp | 31 using system_clock = std::chrono::system_clock; in main() typedef 48 ASSERT_SAME_TYPE(std::chrono::time_point<system_clock, seconds>, sys_seconds); in main() 49 ASSERT_SAME_TYPE(std::chrono::time_point<system_clock, minutes>, sys_minutes); in main() 50 ASSERT_SAME_TYPE(std::chrono::time_point<system_clock, days>, sys_days); in main()
|
/external/pigweed/pw_chrono/ |
D | BUILD | 26 PW_CHRONO_SYSTEM_CLOCK_BACKEND = "//pw_chrono_stl:system_clock" 40 "public/pw_chrono/system_clock.h", 44 "system_clock.cc" 54 name = "system_clock", 74 ":system_clock", 97 ":system_clock",
|
D | BUILD.gn | 32 pw_facade("system_clock") { 37 "public/pw_chrono/system_clock.h", 43 sources = [ "system_clock.cc" ] 51 ":system_clock", 76 ":system_clock",
|
/external/pigweed/pw_chrono_freertos/ |
D | docs.rst | 15 The FreeRTOS based ``system_clock`` backend implements the 16 ``pw_chrono:system_clock`` facade by using ``xTaskGetTickCountFromISR()`` and 28 The GN build for ``pw_chrono_freertos`` has one target: ``system_clock``. 29 The ``system_clock`` target provides the 31 headers and the backend for the ``pw_chrono:system_clock``.
|
/external/pigweed/pw_chrono_threadx/ |
D | docs.rst | 15 The ThreadX based ``system_clock`` backend implements the 16 ``pw_chrono:system_clock`` facade by using ``tx_time_get()``. An 30 The GN build for ``pw_chrono_threadx`` has one target: ``system_clock``. 31 The ``system_clock`` target provides the 33 headers and the backend for the ``pw_chrono:system_clock``.
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | Chrono.h | 33 using TimePoint = std::chrono::time_point<std::chrono::system_clock, D>; 38 return system_clock::to_time_t( in toTimeT() 39 time_point_cast<system_clock::time_point::duration>(TP)); in toTimeT() 46 return time_point_cast<seconds>(system_clock::from_time_t(T)); in toTimePoint()
|
/external/pigweed/pw_chrono_embos/ |
D | docs.rst | 15 The embOS based ``system_clock`` backend implements the 16 ``pw_chrono:system_clock`` facade by using ``OS_GetTime32()``. An 28 The GN build for ``pw_chrono_embos`` has one target: ``system_clock``. 29 The ``system_clock`` target provides the 31 headers and the backend for the ``pw_chrono:system_clock``.
|
/external/llvm-project/compiler-rt/lib/fuzzer/ |
D | FuzzerInternal.h | 44 return duration_cast<seconds>(system_clock::now() - ProcessStartTime) in secondsSinceProcessStartUp() 127 system_clock::time_point LastAllocatorPurgeAttemptTime = system_clock::now(); 135 system_clock::time_point ProcessStartTime = system_clock::now(); 136 system_clock::time_point UnitStartTime, UnitStopTime;
|
/external/rust/crates/libfuzzer-sys/libfuzzer/ |
D | FuzzerInternal.h | 44 return duration_cast<seconds>(system_clock::now() - ProcessStartTime) in secondsSinceProcessStartUp() 127 system_clock::time_point LastAllocatorPurgeAttemptTime = system_clock::now(); 135 system_clock::time_point ProcessStartTime = system_clock::now(); 136 system_clock::time_point UnitStartTime, UnitStopTime;
|
/external/rust/crates/grpcio-sys/grpc/include/grpcpp/impl/codegen/ |
D | time.h | 66 void Timepoint2Timespec(const std::chrono::system_clock::time_point& from, 72 std::chrono::system_clock::time_point Timespec2Timepoint(gpr_timespec t); 75 class TimePoint<std::chrono::system_clock::time_point> { 78 TimePoint(const std::chrono::system_clock::time_point& time) { in TimePoint()
|
/external/rust/crates/grpcio-sys/grpc/spm-cpp-include/grpcpp/impl/codegen/ |
D | time.h | 66 void Timepoint2Timespec(const std::chrono::system_clock::time_point& from, 72 std::chrono::system_clock::time_point Timespec2Timepoint(gpr_timespec t); 75 class TimePoint<std::chrono::system_clock::time_point> { 78 TimePoint(const std::chrono::system_clock::time_point& time) { in TimePoint()
|
/external/grpc-grpc/include/grpcpp/impl/codegen/ |
D | time.h | 67 void Timepoint2Timespec(const std::chrono::system_clock::time_point& from, 73 std::chrono::system_clock::time_point Timespec2Timepoint(gpr_timespec t); 76 class TimePoint<std::chrono::system_clock::time_point> { 78 TimePoint(const std::chrono::system_clock::time_point& time) { in TimePoint()
|
/external/grpc-grpc/test/cpp/common/ |
D | alarm_test.cc | 61 std::chrono::system_clock::now() + std::chrono::seconds(1), [c](bool ok) { in TEST() 70 l, std::chrono::system_clock::now() + std::chrono::seconds(10), in TEST() 87 l, std::chrono::system_clock::now() + std::chrono::seconds(10), in TEST() 96 std::chrono::system_clock::now() + std::chrono::seconds(-1), in TEST() 106 l, std::chrono::system_clock::now() + std::chrono::seconds(10), in TEST() 185 std::chrono::system_clock::time_point one_sec_deadline = in TEST() 186 std::chrono::system_clock::now() + std::chrono::seconds(1); in TEST() 254 std::chrono::system_clock::now() + std::chrono::seconds(10), in TEST() 265 l, std::chrono::system_clock::now() + std::chrono::seconds(1), in TEST() 292 std::chrono::system_clock::now() + std::chrono::seconds(10), in TEST() [all …]
|
/external/llvm-project/lldb/test/API/commands/expression/timeout/ |
D | wait-a-while.cpp | 12 auto end_time = std::chrono::system_clock::now() + std::chrono::microseconds(microseconds); in wait_a_while() 17 auto wait_time = end_time - std::chrono::system_clock::now(); in wait_a_while() 20 if (std::chrono::system_clock::now() > end_time) in wait_a_while()
|