/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/rust/crates/nix/src/sys/ |
D | time.rs | 168 fn nanoseconds(nanoseconds: i64) -> Self; in nanoseconds() method 274 let nanoseconds = milliseconds in milliseconds() localVariable 278 TimeSpec::nanoseconds(nanoseconds) in milliseconds() 284 let nanoseconds = microseconds in microseconds() localVariable 288 TimeSpec::nanoseconds(nanoseconds) in microseconds() 295 fn nanoseconds(nanoseconds: i64) -> TimeSpec { in nanoseconds() method 296 let (secs, nanos) = div_mod_floor_64(nanoseconds, NANOS_PER_SEC); in nanoseconds() 337 pub const fn new(seconds: time_t, nanoseconds: timespec_tv_nsec_t) -> Self { in new() 340 ts.tv_nsec = nanoseconds; in new() 379 TimeSpec::nanoseconds(-self.num_nanoseconds()) in neg() [all …]
|
/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/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/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/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/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/skia/tools/gpu/gl/ |
D | GLTestContext.cpp | 21 std::chrono::nanoseconds getTimeElapsed(sk_gpu_test::PlatformTimerQuery) override; 140 std::chrono::nanoseconds GLGpuTimer::getTimeElapsed(sk_gpu_test::PlatformTimerQuery platformTimer) { in getTimeElapsed() 143 GrGLuint64 nanoseconds; in getTimeElapsed() local 144 fGLGetQueryObjectui64v(queryID, GL_QUERY_RESULT, &nanoseconds); in getTimeElapsed() 145 return std::chrono::nanoseconds(nanoseconds); in getTimeElapsed()
|
/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;
|
D | pps_datasource.cc | 32 float ms(const std::chrono::nanoseconds &t) in ms() 76 auto min_sampling_period = std::chrono::nanoseconds(MIN_SAMPLING_PERIOD_NS); in OnSetup() 78 auto dev_supported = std::chrono::nanoseconds(driver->get_min_sampling_period_ns()); in OnSetup() 86 auto requested_sampling_period = std::chrono::nanoseconds(config.counter_period_ns()); in OnSetup() 358 nanoseconds sleep_time = nanoseconds(0); in trace_callback()
|
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/WellKnownTypes/ |
D | TimestampTest.cs | 69 public void ToDateTime_OutOfRange(long seconds, int nanoseconds) in ToDateTime_OutOfRange() argument 71 var value = new Timestamp { Seconds = seconds, Nanos = nanoseconds }; in ToDateTime_OutOfRange() 81 public void ToDateTime_ValidBoundaries(long seconds, int nanoseconds) in ToDateTime_ValidBoundaries() argument 83 var value = new Timestamp { Seconds = seconds, Nanos = nanoseconds }; in ToDateTime_ValidBoundaries()
|
D | DurationTest.cs | 106 public void ToTimeSpan_Invalid(long seconds, int nanoseconds) in ToTimeSpan_Invalid() argument 108 var duration = new Duration { Seconds = seconds, Nanos = nanoseconds }; in ToTimeSpan_Invalid() 117 public void ToTimeSpan_Valid(long seconds, int nanoseconds) in ToTimeSpan_Valid() argument 120 var duration = new Duration { Seconds = seconds, Nanos = nanoseconds }; in ToTimeSpan_Valid()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/ |
D | coverage.txt | 20 STARTSEC, STARTNSEC = the start time, seconds and nanoseconds, respectively 21 FINISHSEC, FINISHNSEC = the finish time, seconds and nanoseconds, respectively 22 slepts, sleptns = amount of seconds and nanoseconds slept, respectively
|
/third_party/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/ |
D | DurationTest.cs | 106 public void ToTimeSpan_Invalid(long seconds, int nanoseconds) in ToTimeSpan_Invalid() argument 108 var duration = new Duration { Seconds = seconds, Nanos = nanoseconds }; in ToTimeSpan_Invalid() 117 public void ToTimeSpan_Valid(long seconds, int nanoseconds) in ToTimeSpan_Valid() argument 120 var duration = new Duration { Seconds = seconds, Nanos = nanoseconds }; in ToTimeSpan_Valid()
|
/third_party/musl/porting/liteos_m/user/hook/ |
D | los_usr_libc.c | 401 UINT64 nanoseconds = (UINT64)useconds * OS_SYS_NS_PER_US; in usleep() local 403 specTime.tv_sec = (time_t)(nanoseconds / OS_SYS_NS_PER_SECOND); in usleep() 404 specTime.tv_nsec = (long)(nanoseconds % OS_SYS_NS_PER_SECOND); in usleep() 411 UINT64 nanoseconds = (UINT64)seconds * OS_SYS_NS_PER_SECOND; in sleep() local 413 specTime.tv_sec = (time_t)(nanoseconds / OS_SYS_NS_PER_SECOND); in sleep() 414 specTime.tv_nsec = (long)(nanoseconds % OS_SYS_NS_PER_SECOND); in sleep()
|
/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/ |
D | TimeUtil.java | 221 public static Timestamp createTimestampFromNanos(long nanoseconds) { in createTimestampFromNanos() argument 222 return Timestamps.fromNanos(nanoseconds); in createTimestampFromNanos() 231 public static Duration createDurationFromNanos(long nanoseconds) { in createDurationFromNanos() argument 232 return Durations.fromNanos(nanoseconds); in createDurationFromNanos()
|
/third_party/flutter/skia/tools/gpu/gl/ |
D | GLTestContext.cpp | 150 std::chrono::nanoseconds getTimeElapsed(sk_gpu_test::PlatformTimerQuery) override; 262 std::chrono::nanoseconds GLGpuTimer::getTimeElapsed(sk_gpu_test::PlatformTimerQuery platformTimer) { in getTimeElapsed() 265 GrGLuint64 nanoseconds; in getTimeElapsed() local 266 fGLGetQueryObjectui64v(queryID, GL_QUERY_RESULT, &nanoseconds); in getTimeElapsed() 267 return std::chrono::nanoseconds(nanoseconds); in getTimeElapsed()
|
/third_party/nghttp2/src/ |
D | shrpx_quic.cc | 53 return std::chrono::duration_cast<std::chrono::nanoseconds>( in quic_timestamp() 277 auto t = std::chrono::duration_cast<std::chrono::nanoseconds>( in generate_retry_token() 297 auto t = std::chrono::duration_cast<std::chrono::nanoseconds>( in verify_retry_token() 312 auto t = std::chrono::duration_cast<std::chrono::nanoseconds>( in generate_token() 329 auto t = std::chrono::duration_cast<std::chrono::nanoseconds>( in verify_token()
|
/third_party/python/Python/ |
D | thread_nt.h | 83 _PyTime_t nanoseconds = _PyTime_FromNanoseconds((_PyTime_t)milliseconds * 1000000); in EnterNonRecursiveMutex() local 84 _PyTime_t target = now + nanoseconds; in EnterNonRecursiveMutex() 86 _PyTime_t microseconds = _PyTime_AsMicroseconds(nanoseconds, _PyTime_ROUND_TIMEOUT); in EnterNonRecursiveMutex() 94 nanoseconds = target - now; in EnterNonRecursiveMutex()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/Windows/ |
D | WindowsSupport.h | 201 inline std::chrono::nanoseconds toDuration(FILETIME Time) { in toDuration() 207 return std::chrono::nanoseconds(100 * TimeInteger.QuadPart); in toDuration() 219 return TimePoint<>(std::chrono::nanoseconds(100 * TimeInteger.QuadPart)); in toTimePoint()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | Chrono.h | 32 template <typename D = std::chrono::nanoseconds> 53 return time_point_cast<nanoseconds>(system_clock::from_time_t(T)) in toTimePoint() 54 + nanoseconds(nsec); in toTimePoint()
|
D | Process.h | 81 std::chrono::nanoseconds &user_time, 82 std::chrono::nanoseconds &sys_time);
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | Process.h | 64 std::chrono::nanoseconds &user_time, 65 std::chrono::nanoseconds &sys_time);
|
/third_party/flutter/engine/flutter/shell/platform/glfw/ |
D | glfw_event_loop.h | 37 std::chrono::nanoseconds max_wait = std::chrono::nanoseconds::max());
|