/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/ |
D | DurationPartial.cs | 65 internal static bool IsNormalized(long seconds, int nanoseconds) in IsNormalized() argument 69 nanoseconds < MinNanoseconds || nanoseconds > MaxNanoseconds) in IsNormalized() 75 return Math.Sign(seconds) * Math.Sign(nanoseconds) != -1; in IsNormalized() 164 internal static Duration Normalize(long seconds, int nanoseconds) in Normalize() argument 167 int extraSeconds = nanoseconds / NanosecondsPerSecond; in Normalize() 169 nanoseconds -= extraSeconds * NanosecondsPerSecond; in Normalize() 172 if (seconds < 0 && nanoseconds > 0) in Normalize() 175 nanoseconds -= NanosecondsPerSecond; in Normalize() 177 else if (seconds > 0 && nanoseconds < 0) in Normalize() 180 nanoseconds += NanosecondsPerSecond; in Normalize() [all …]
|
D | TimestampPartial.cs | 48 private static bool IsNormalized(long seconds, int nanoseconds) => in IsNormalized() argument 49 nanoseconds >= 0 && in IsNormalized() 50 nanoseconds <= MaxNanos && in IsNormalized() 154 … int nanoseconds = (int) (dateTime.Ticks % TimeSpan.TicksPerSecond) * Duration.NanosecondsPerTick; in FromDateTime() 155 …turn new Timestamp { Seconds = secondsSinceBclEpoch - BclSecondsAtUnixEpoch, Nanos = nanoseconds }; in FromDateTime() 173 internal static Timestamp Normalize(long seconds, int nanoseconds) in Normalize() argument 175 int extraSeconds = nanoseconds / Duration.NanosecondsPerSecond; in Normalize() 177 nanoseconds -= extraSeconds * Duration.NanosecondsPerSecond; in Normalize() 179 if (nanoseconds < 0) in Normalize() 181 nanoseconds += Duration.NanosecondsPerSecond; in Normalize() [all …]
|
/third_party/boost/libs/chrono/example/ |
D | time2_demo_output.txt | 23 100 hours expressed as nanoseconds = 360000000000000 24 200 hours expressed as nanoseconds = 720000000000000 25 300 hours expressed as nanoseconds = 1080000000000000 49 100 years expressed as nanoseconds = 3155695200000000000 50 200 years expressed as nanoseconds = 6311390400000000000 51 300 years expressed as nanoseconds = inf 72 ********* nanoseconds ********* 73 The period of nanoseconds is 1e-09 seconds. 74 The frequency of nanoseconds is 1e+09 Hz. 78 sizeof(nanoseconds) = 8 [all …]
|
D | test_clock.cpp | 51 std::cout << "5 milliseconds paused " << nanoseconds(stop - start).count() << " nanoseconds\n"; in test_clock() 61 …std::cout << "After " << counter << " trials, elapsed time " << nanoseconds(stop - start).count() … in test_clock() 67 …std::cout << "After " << counter << " trials, elapsed time " << nanoseconds(stop - start).count() … in test_clock() 74 std::cout << "Resolution estimate: " << nanoseconds(stop-start).count() << " nanoseconds\n"; in test_clock() 87 std::cout << "paused " << nanoseconds(elapsed).count() << " nanoseconds\n"; in test_system_clock() 90 …std::cout << "system_clock resolution estimate: " << nanoseconds(stop-start).count() << " nanoseco… in test_system_clock() 103 std::cout << "paused " << nanoseconds(elapsed).count() << " nanoseconds\n"; in test_steady_clock() 106 …std::cout << "steady_clock resolution estimate: " << nanoseconds(stop-start).count() << " nanoseco… in test_steady_clock() 118 std::cout << "paused " << nanoseconds(elapsed).count() << " nanoseconds\n"; in test_hi_resolution_clock() 121 …std::cout << "high_resolution_clock resolution estimate: " << nanoseconds(stop-start).count() << "… in test_hi_resolution_clock()
|
D | test_clock2.cpp | 86 std::cout << "5 milliseconds paused " << nanoseconds(stop - start).count() << " nanoseconds\n"; in test_clock() 96 …std::cout << "After " << count << " trials, elapsed time " << nanoseconds(stop - start).count() <<… in test_clock() 102 …std::cout << "After " << count << " trials, elapsed time " << nanoseconds(stop - start).count() <<… in test_clock() 109 std::cout << "Resolution estimate: " << nanoseconds(stop-start).count() << " nanoseconds\n"; in test_clock() 123 std::cout << "paused " << nanoseconds(elapsed).count() << " nanoseconds\n"; in test_system_clock() 126 …std::cout << "system_clock resolution estimate: " << nanoseconds(stop-start).count() << " nanoseco… in test_system_clock() 139 std::cout << "paused " << nanoseconds(elapsed).count() << " nanoseconds\n"; in test_steady_clock() 142 …std::cout << "steady_clock resolution estimate: " << nanoseconds(stop-start).count() << " nanoseco… in test_steady_clock() 154 std::cout << "paused " << nanoseconds(elapsed).count() << " nanoseconds\n"; in test_hi_resolution_clock() 157 …std::cout << "high_resolution_clock resolution estimate: " << nanoseconds(stop-start).count() << "… in test_hi_resolution_clock()
|
D | cycle_count.cpp | 58 typedef nanoseconds duration; 79 nanoseconds delayns(500); in cycle_count_delay() 89 std::cout << "which is " << duration_cast<nanoseconds>(elapsed).count() << " nanoseconds\n"; in cycle_count_delay() 94 clock::duration delay = nanoseconds(500); in cycle_count_delay() 108 nanoseconds delayns(500); in cycle_count_delay() 118 std::cout << "which is " << duration_cast<nanoseconds>(elapsed).count() << " nanoseconds\n"; in cycle_count_delay() 123 clock::duration delay = nanoseconds(500); in cycle_count_delay()
|
D | miscellaneous.cpp | 48 physics_function(nanoseconds(3)); in drive_physics_function() 52 physics_function( hours(3) + nanoseconds(-3) ); in drive_physics_function() 59 nanoseconds n1 = h1 + nanoseconds(1); in test_range() 60 nanoseconds delta = n1 - h1; in test_range() 117 inspect_duration(nanoseconds(), "nanoseconds"); in inspect_all()
|
D | test_duration.cpp | 75 inspect_duration(nanoseconds(), "nanoseconds"); in inspect_all() 112 void g(nanoseconds d, boost::intmax_t res) in g() 123 nanoseconds ns = duration_cast<nanoseconds>(d); in tmpl() 134 nanoseconds ns = duration_cast<nanoseconds>(d); in tmpl2() 172 g(duration_cast<nanoseconds>(s), 333333333); // round towards zero in conversion to nanoseconds in main()
|
/third_party/boost/libs/chrono/test/duration/ |
D | arithmetic_pass.cpp | 103 boost::chrono::nanoseconds ns(3); in main() 109 boost::chrono::nanoseconds ns(15); in main() 230 boost::chrono::nanoseconds ns(3); in main() 231 boost::chrono::nanoseconds ns2 = ns * 5; in main() 233 boost::chrono::nanoseconds ns3 = 6 * ns2; in main() 237 BOOST_CONSTEXPR boost::chrono::nanoseconds ns(3); in main() 238 BOOST_CONSTEXPR boost::chrono::nanoseconds ns2 = ns * 5; in main() 240 BOOST_CONSTEXPR boost::chrono::nanoseconds ns3 = 6 * ns2; in main() 246 boost::chrono::nanoseconds ns1(15); in main() 247 boost::chrono::nanoseconds ns2(5); in main() [all …]
|
/third_party/boost/boost/thread/ |
D | poly_shared_lockable.hpp | 39 virtual bool try_lock_shared_for(chrono::nanoseconds const & relative_time)=0; 43 return try_lock_shared_for(chrono::duration_cast<chrono::nanoseconds>(rel_time)); in try_lock_shared_for() 70 virtual bool try_lock_upgrade_for(chrono::nanoseconds const & relative_time)=0; 74 return try_lock_upgrade_for(chrono::duration_cast<chrono::nanoseconds>(rel_time)); in try_lock_upgrade_for() 87 virtual bool try_unlock_shared_and_lock_for(chrono::nanoseconds const & relative_time)=0; 91 return try_unlock_shared_and_lock_for(chrono::duration_cast<chrono::nanoseconds>(rel_time)); in try_unlock_shared_and_lock_for() 105 … virtual bool try_unlock_shared_and_lock_upgrade_for(chrono::nanoseconds const & relative_time)=0; 109 …return try_unlock_shared_and_lock_upgrade_for(chrono::duration_cast<chrono::nanoseconds>(rel_time)… in try_unlock_shared_and_lock_upgrade_for() 124 virtual bool try_unlock_upgrade_and_lock_for(chrono::nanoseconds const & relative_time)=0; 128 return try_unlock_upgrade_and_lock_for(chrono::duration_cast<chrono::nanoseconds>(rel_time)); in try_unlock_upgrade_and_lock_for()
|
D | poly_shared_lockable_adapter.hpp | 48 bool try_lock_shared_for(chrono::nanoseconds const & rel_time) in try_lock_shared_for() 87 bool try_lock_upgrade_for(chrono::nanoseconds const & rel_time) in try_lock_upgrade_for() 105 bool try_unlock_shared_and_lock_for(chrono::nanoseconds const & rel_time) in try_unlock_shared_and_lock_for() 128 bool try_unlock_shared_and_lock_upgrade_for(chrono::nanoseconds const & rel_time) in try_unlock_shared_and_lock_upgrade_for() 155 bool try_unlock_upgrade_and_lock_for(chrono::nanoseconds const & rel_time) in try_unlock_upgrade_and_lock_for()
|
/third_party/boost/libs/compute/include/boost/compute/detail/ |
D | duration.hpp | 31 make_duration_from_nanoseconds(std::chrono::duration<Rep, Period>, size_t nanoseconds) in make_duration_from_nanoseconds() argument 34 std::chrono::nanoseconds(nanoseconds) in make_duration_from_nanoseconds() 42 make_duration_from_nanoseconds(boost::chrono::duration<Rep, Period>, size_t nanoseconds) in make_duration_from_nanoseconds() argument 45 boost::chrono::nanoseconds(nanoseconds) in make_duration_from_nanoseconds()
|
/third_party/boost/boost/compute/detail/ |
D | duration.hpp | 31 make_duration_from_nanoseconds(std::chrono::duration<Rep, Period>, size_t nanoseconds) in make_duration_from_nanoseconds() argument 34 std::chrono::nanoseconds(nanoseconds) in make_duration_from_nanoseconds() 42 make_duration_from_nanoseconds(boost::chrono::duration<Rep, Period>, size_t nanoseconds) in make_duration_from_nanoseconds() argument 45 boost::chrono::nanoseconds(nanoseconds) in make_duration_from_nanoseconds()
|
/third_party/boost/libs/thread/test/threads/this_thread/sleep_until/ |
D | sleep_until_pass.cpp | 36 boost::chrono::nanoseconds ns = (t1 - t0) - ms; in main() 37 boost::chrono::nanoseconds err = ms / 100; in main() 51 boost::chrono::nanoseconds ns = (t1 - t0) - ms; in main() 52 boost::chrono::nanoseconds err = ms / 100; in main() 66 boost::chrono::nanoseconds ns = (t1 - t0) - ms; in main() 67 boost::chrono::nanoseconds err = ms / 100; in main() 81 boost::chrono::nanoseconds ns = (t1 - t0) - ms; in main() 82 boost::chrono::nanoseconds err = ms / 100; in main()
|
/third_party/protobuf/php/src/Google/Protobuf/Internal/ |
D | GPBUtil.php | 418 $nanoseconds = 0; 437 $nanoseconds = substr($timestamp, $periodIndex + 1, $nanosecondsLength); 438 $nanoseconds = intval($nanoseconds); 455 $value->setNanos($nanoseconds); 467 $nanoseconds = static::getNanosecondsForTimestamp($value->getNanos()); 468 if (!empty($nanoseconds)) { 469 $nanoseconds = ".".$nanoseconds; 472 return $date->format("Y-m-d\TH:i:s".$nanoseconds."\Z"); 577 public static function getNanosecondsForTimestamp($nanoseconds) argument 579 if ($nanoseconds == 0) { [all …]
|
/third_party/grpc/src/cpp/util/ |
D | time_cc.cc | 25 using std::chrono::nanoseconds; 41 nanoseconds nsecs = duration_cast<nanoseconds>(deadline - secs); in Timepoint2Timespec() 57 nanoseconds nsecs = duration_cast<nanoseconds>(deadline - secs); in TimepointHR2Timespec() 71 duration_cast<system_clock::time_point::duration>(nanoseconds(t.tv_nsec)); in Timespec2Timepoint()
|
/third_party/typescript/src/tsserver/ |
D | webServer.ts | 91 let nanoseconds = Math.floor((now % 1) * 1e9); 94 nanoseconds = nanoseconds - previous[1]; 95 if (nanoseconds < 0) { 97 nanoseconds += 1e9; 100 return [seconds, nanoseconds];
|
/third_party/skia/third_party/externals/oboe/src/common/ |
D | AudioClock.h | 62 static int sleepForNanos(int64_t nanoseconds, clockid_t clockId = CLOCK_REALTIME) { 63 if (nanoseconds > 0) { 65 time.tv_sec = nanoseconds / kNanosPerSecond; 66 time.tv_nsec = nanoseconds - (time.tv_sec * kNanosPerSecond);
|
/third_party/skia/platform_tools/android/apps/skottie/ |
D | skottie_metric.proto | 18 // in nanoseconds. These values have 0 value for lottie player, because it does it renders only 40 optional int64 ui_thread_cpu_time = 12; // CPU time spent on UI thread in nanoseconds 41 optional int64 rt_thread_cpu_time = 13; // CPU time spent on RenderThread in nanoseconds 42 optional int64 hwui_tasks_cpu_time = 14; // CPU time spent on hwuiTask0/1 threads in nanoseconds 45 optional int64 total_cpu_time = 16; // Total CPU time in nanoseconds. Equals 48 optional int64 total_gpu_time = 17; // GPU time spent to render all content in nanoseconds. 52 optional int64 total_time = 18; // This is total_cpu_time + total_gpu_time in nanoseconds.
|
/third_party/boost/boost/chrono/detail/inlined/posix/ |
D | process_cpu_clocks.hpp | 25 inline nanoseconds::rep tick_factor() // multiplier to convert ticks in tick_factor() 57 nanoseconds(c*chrono_detail::tick_factor())); in now() 99 nanoseconds(c*chrono_detail::tick_factor())); in now() 134 nanoseconds((tm.tms_utime + tm.tms_cutime)*chrono_detail::tick_factor())); in now() 175 nanoseconds((tm.tms_utime + tm.tms_cutime)*chrono_detail::tick_factor())); in now() 211 nanoseconds((tm.tms_stime + tm.tms_cstime)*chrono_detail::tick_factor())); in now() 252 nanoseconds((tm.tms_stime + tm.tms_cstime)*chrono_detail::tick_factor())); in now() 284 nanoseconds::rep factor = chrono_detail::tick_factor(); in now()
|
/third_party/boost/libs/thread/test/threads/this_thread/sleep_for/ |
D | sleep_for_pass.cpp | 35 boost::chrono::nanoseconds ns = (t1 - t0) - ms; in main() 36 boost::chrono::nanoseconds err = ms / 100; in main() 49 boost::chrono::nanoseconds ns = (t1 - t0) - ms; in main() 50 boost::chrono::nanoseconds err = ms / 100; in main()
|
/third_party/boost/boost/chrono/detail/inlined/mac/ |
D | process_cpu_clocks.hpp | 62 return time_point(nanoseconds(c * factor)); in now() 79 return time_point(nanoseconds(c * factor)); in now() 115 return time_point(nanoseconds(c * factor)); in now() 149 return time_point(nanoseconds(c * factor)); in now() 191 return time_point(nanoseconds((tm.tms_utime + tm.tms_cutime) * factor)); in now() 219 return time_point(nanoseconds((tm.tms_utime + tm.tms_cutime) in now() 240 return time_point(nanoseconds((tm.tms_stime + tm.tms_cstime) in now() 274 return time_point(nanoseconds((tm.tms_stime + tm.tms_cstime) * factor)); in now()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/ |
D | time_zone_format_test.cc | 77 const time_point<chrono::nanoseconds> t0 = in TEST() 80 chrono::nanoseconds(789); in TEST() 83 format(kFmt, chrono::time_point_cast<chrono::nanoseconds>(t0), utc)); in TEST() 132 time_point<chrono::nanoseconds> tp = chrono::system_clock::from_time_t(0); in TEST() 147 chrono::nanoseconds(8); in TEST() 269 time_point<chrono::nanoseconds> tp = chrono::system_clock::from_time_t(0); in TEST() 291 chrono::nanoseconds(8); in TEST() 331 time_point<chrono::nanoseconds> tp = chrono::system_clock::from_time_t(0); in TEST() 353 chrono::nanoseconds(8); in TEST() 399 time_point<chrono::nanoseconds> tp = chrono::system_clock::from_time_t(0); in TEST() [all …]
|
/third_party/abseil-cpp/absl/time/internal/cctz/src/ |
D | time_zone_format_test.cc | 77 const time_point<chrono::nanoseconds> t0 = in TEST() 80 chrono::nanoseconds(789); in TEST() 83 format(kFmt, chrono::time_point_cast<chrono::nanoseconds>(t0), utc)); in TEST() 132 time_point<chrono::nanoseconds> tp = chrono::system_clock::from_time_t(0); in TEST() 147 chrono::nanoseconds(8); in TEST() 269 time_point<chrono::nanoseconds> tp = chrono::system_clock::from_time_t(0); in TEST() 291 chrono::nanoseconds(8); in TEST() 331 time_point<chrono::nanoseconds> tp = chrono::system_clock::from_time_t(0); in TEST() 353 chrono::nanoseconds(8); in TEST() 399 time_point<chrono::nanoseconds> tp = chrono::system_clock::from_time_t(0); in TEST() [all …]
|
/third_party/mesa3d/src/tool/pps/ |
D | pps_datasource.h | 51 std::chrono::nanoseconds time_to_sleep = std::chrono::nanoseconds(1000000); 54 std::chrono::nanoseconds time_to_trace;
|