Home
last modified time | relevance | path

Searched refs:nanoseconds (Results 1 – 25 of 200) sorted by relevance

12345678

/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DDurationPartial.cs65 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 …]
DTimestampPartial.cs48 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/
Dtime.rs168 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/
DGPBUtil.php418 $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/
DwebServer.ts91 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/
Dskottie_metric.proto18 // 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/
DAudioClock.h62 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/
Dtime_zone_format_test.cc77 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/
DGLTestContext.cpp21 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/
Dpps_datasource.h51 std::chrono::nanoseconds time_to_sleep = std::chrono::nanoseconds(1000000);
54 std::chrono::nanoseconds time_to_trace;
Dpps_datasource.cc32 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/
DTimestampTest.cs69 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()
DDurationTest.cs106 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/
Dcoverage.txt20 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/
DDurationTest.cs106 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/
Dlos_usr_libc.c401 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/
DTimeUtil.java221 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/
DGLTestContext.cpp150 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/
Dshrpx_quic.cc53 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/
Dthread_nt.h83 _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/
DWindowsSupport.h201 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/
DChrono.h32 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()
DProcess.h81 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/
DProcess.h64 std::chrono::nanoseconds &user_time,
65 std::chrono::nanoseconds &sys_time);
/third_party/flutter/engine/flutter/shell/platform/glfw/
Dglfw_event_loop.h37 std::chrono::nanoseconds max_wait = std::chrono::nanoseconds::max());

12345678