Home
last modified time | relevance | path

Searched refs:system_clock (Results 1 – 25 of 61) sorted by relevance

123

/third_party/nghttp2/src/
Dshrpx_log_config.h41 Timestamp(const std::chrono::system_clock::time_point &tp);
52 std::chrono::system_clock::time_point time_str_updated;
64 void update_tstamp_millis(const std::chrono::system_clock::time_point &now);
67 void update_tstamp(const std::chrono::system_clock::time_point &now);
Dshrpx_log_config.cc38 Timestamp::Timestamp(const std::chrono::system_clock::time_point &tp) { in Timestamp()
45 : time_str_updated(std::chrono::system_clock::now()), in LogConfig()
100 const std::chrono::system_clock::time_point &now) { in update_tstamp_millis()
114 const std::chrono::system_clock::time_point &now) { in update_tstamp()
Dshrpx_quic.cc278 std::chrono::system_clock::now().time_since_epoch()) in generate_retry_token()
298 std::chrono::system_clock::now().time_since_epoch()) in verify_retry_token()
313 std::chrono::system_clock::now().time_since_epoch()) in generate_token()
330 std::chrono::system_clock::now().time_since_epoch()) in verify_token()
Dutil_test.cc197 std::chrono::system_clock::time_point())); in test_util_http_date()
200 std::chrono::system_clock::time_point( in test_util_http_date()
462 std::chrono::system_clock::time_point( in test_util_localtime_date()
470 std::chrono::system_clock::time_point( in test_util_localtime_date()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DChrono.h33 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()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DChrono.h33 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()
53 return time_point_cast<nanoseconds>(system_clock::from_time_t(T)) in toTimePoint()
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_lookup_test.cc756 EXPECT_EQ(chrono::system_clock::from_time_t(0), in TEST()
762 EXPECT_EQ(chrono::system_clock::from_time_t(0), in TEST()
768 EXPECT_EQ(chrono::system_clock::from_time_t(0), in TEST()
824 chrono::system_clock::time_point() - chrono::system_clock::from_time_t(0); in TEST()
825 EXPECT_EQ(chrono::system_clock::time_point::duration::zero(), in TEST()
831 const auto t0 = chrono::system_clock::from_time_t(0); in TEST()
851 const auto tp = chrono::system_clock::from_time_t(0); in TEST()
859 chrono::system_clock::from_time_t(0) - chrono::milliseconds(500); in TEST()
867 const auto tp = chrono::system_clock::from_time_t(536457599); in TEST()
876 const auto tp = chrono::system_clock::from_time_t(0); in TEST()
[all …]
Dcctz_benchmark.cc839 std::chrono::system_clock::time_point tp = in BM_Time_ToCivil_CCTZ()
840 std::chrono::system_clock::from_time_t(1384569027); in BM_Time_ToCivil_CCTZ()
841 std::chrono::system_clock::time_point tp2 = in BM_Time_ToCivil_CCTZ()
842 std::chrono::system_clock::from_time_t(1418962578); in BM_Time_ToCivil_CCTZ()
870 std::chrono::system_clock::time_point tp = in BM_Time_ToCivilUTC_CCTZ()
871 std::chrono::system_clock::from_time_t(1384569027); in BM_Time_ToCivilUTC_CCTZ()
1007 const std::chrono::system_clock::time_point tp = in BM_Format_FormatTime()
1020 std::chrono::system_clock::time_point tp = in BM_Format_ParseTime()
Dtime_zone_format_test.cc78 chrono::system_clock::from_time_t(1420167845) + in TEST()
108 chrono::system_clock::from_time_t(0)) + in TEST()
132 time_point<chrono::nanoseconds> tp = chrono::system_clock::from_time_t(0); in TEST()
157 auto tp = chrono::system_clock::from_time_t(0); in TEST()
199 auto tp = chrono::system_clock::from_time_t(0); in TEST()
248 auto tp = chrono::system_clock::from_time_t(0); in TEST()
269 time_point<chrono::nanoseconds> tp = chrono::system_clock::from_time_t(0); in TEST()
311 tp = chrono::system_clock::from_time_t(0) + chrono::microseconds(-1); in TEST()
318 tp = chrono::system_clock::from_time_t(0) + in TEST()
331 time_point<chrono::nanoseconds> tp = chrono::system_clock::from_time_t(0); in TEST()
[all …]
Dtime_zone_if.h62 std::chrono::system_clock::from_time_t(0))) in ToUnixSeconds()
67 std::chrono::system_clock::from_time_t(0)) + in FromUnixSeconds()
/third_party/json/tests/thirdparty/Fuzzer/
DFuzzerInternal.h65 return duration_cast<seconds>(system_clock::now() - ProcessStartTime) in secondsSinceProcessStartUp()
163 system_clock::time_point ProcessStartTime = system_clock::now();
164 system_clock::time_point UnitStartTime, UnitStopTime;
DFuzzerLoop.cpp295 duration_cast<seconds>(system_clock::now() - UnitStartTime).count(); in AlarmCallback()
537 UnitStartTime = system_clock::now(); in ExecuteCallback()
543 UnitStopTime = system_clock::now(); in ExecuteCallback()
748 system_clock::time_point LastCorpusReload = system_clock::now(); in Loop()
752 auto Now = system_clock::now(); in Loop()
756 LastCorpusReload = system_clock::now(); in Loop()
DFuzzerDriver.cpp445 Seed = (std::chrono::system_clock::now().time_since_epoch().count() << 10) + in FuzzerDriver()
479 auto StartTime = system_clock::now(); in FuzzerDriver()
483 auto StopTime = system_clock::now(); in FuzzerDriver()
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/
Devent_test.cpp151 auto start = std::chrono::system_clock::now(); in TEST_P()
153 auto end = std::chrono::system_clock::now(); in TEST_P()
168 auto start = std::chrono::system_clock::now(); in TEST_P()
183 auto start = std::chrono::system_clock::now(); in TEST_P()
185 auto end = std::chrono::system_clock::now(); in TEST_P()
Dscheduler.cpp432 return timeout == nullptr || std::chrono::system_clock::now() < *timeout; in wait()
460 if (timeout != nullptr && std::chrono::system_clock::now() >= *timeout) { in wait()
470 const std::chrono::system_clock::time_point* timeout) { in suspend()
619 auto now = std::chrono::system_clock::now(); in enqueueFiberTimeouts()
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/
Dget_current_time_chrono.inc24 std::chrono::system_clock::now() -
25 std::chrono::system_clock::from_time_t(0))
/third_party/skia/third_party/externals/swiftshader/tests/SystemUnitTests/
DSynchronizationTests.cpp83 ASSERT_TRUE(ev.wait(std::chrono::system_clock::now() + std::chrono::seconds(10))); in TEST()
92 ASSERT_FALSE(ev.wait(std::chrono::system_clock::now() + std::chrono::milliseconds(1))); in TEST()
/third_party/skia/third_party/externals/abseil-cpp/absl/time/
Dtime.cc56 std::chrono::system_clock::from_time_t(0)); in unix_epoch()
334 Time FromChrono(const std::chrono::system_clock::time_point& tp) { in FromChrono()
336 tp - std::chrono::system_clock::from_time_t(0))); in FromChrono()
339 std::chrono::system_clock::time_point ToChronoTime(absl::Time t) { in ToChronoTime()
340 using D = std::chrono::system_clock::duration; in ToChronoTime()
343 return std::chrono::system_clock::from_time_t(0) + in ToChronoTime()
Dtime_test.cc523 std::chrono::system_clock::time_point MakeChronoUnixTime(const Duration& d) { in MakeChronoUnixTime()
524 return std::chrono::system_clock::from_time_t(0) + d; in MakeChronoUnixTime()
529 absl::FromChrono(std::chrono::system_clock::from_time_t(-1))); in TEST()
531 absl::FromChrono(std::chrono::system_clock::from_time_t(0))); in TEST()
533 absl::FromChrono(std::chrono::system_clock::from_time_t(1))); in TEST()
561 EXPECT_EQ(std::chrono::system_clock::from_time_t(-1), in TEST()
563 EXPECT_EQ(std::chrono::system_clock::from_time_t(0), in TEST()
565 EXPECT_EQ(std::chrono::system_clock::from_time_t(1), in TEST()
577 EXPECT_EQ(std::chrono::system_clock::from_time_t(0) - in TEST()
578 std::chrono::system_clock::duration(1), in TEST()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/time/time_gtest/
Dtime_ftime_test.cpp22 auto currentTime = std::chrono::system_clock::now();
/third_party/gstreamer/gstplugins_good/sys/directsound/
Dgstdirectsoundsink.h84 GstClock *system_clock; member
Dgstdirectsoundsink.c142 gst_object_unref (dsoundsink->system_clock); in gst_directsound_sink_finalize()
224 dsoundsink->system_clock = gst_system_clock_obtain (); in gst_directsound_sink_init()
647 sleep_until = gst_clock_get_time (dsoundsink->system_clock) + in gst_directsound_sink_write()
656 gst_clock_single_shot_id_reinit (dsoundsink->system_clock, in gst_directsound_sink_write()
664 gst_clock_new_single_shot_id (dsoundsink->system_clock, in gst_directsound_sink_write()
/third_party/gstreamer/gstplugins_bad/sys/directsound/
Dgstdirectsoundsrc.h106 GstClock *system_clock; member
Dgstdirectsoundsrc.c160 gst_object_unref (dsoundsrc->system_clock); in gst_directsound_src_finalize()
321 src->system_clock = gst_system_clock_obtain (); in gst_directsound_src_init()
699 sleep_until = gst_clock_get_time (dsoundsrc->system_clock) + in gst_directsound_src_read()
703 gst_clock_single_shot_id_reinit (dsoundsrc->system_clock, in gst_directsound_src_read()
708 gst_clock_new_single_shot_id (dsoundsrc->system_clock, sleep_until); in gst_directsound_src_read()
/third_party/skia/third_party/externals/angle2/util/
Drandom_utils.cpp22 long long timeSeed = std::chrono::system_clock::now().time_since_epoch().count(); in RNG()

123