Home
last modified time | relevance | path

Searched refs:kMicrosecondsPerSecond (Results 1 – 25 of 39) sorted by relevance

12

/external/cronet/base/allocator/partition_allocator/partition_alloc_base/time/
Dtime_conversion_posix.cc19 return TimeDelta(ts.tv_sec * Time::kMicrosecondsPerSecond + in FromTimeSpec()
26 if (microseconds >= Time::kMicrosecondsPerSecond) { in ToTimeSpec()
28 microseconds -= seconds * Time::kMicrosecondsPerSecond; in ToTimeSpec()
38 PA_DCHECK(t.tv_usec < static_cast<int>(Time::kMicrosecondsPerSecond)); in FromTimeVal()
42 if (t.tv_usec == static_cast<suseconds_t>(Time::kMicrosecondsPerSecond) - 1 && in FromTimeVal()
45 return Time((static_cast<int64_t>(t.tv_sec) * Time::kMicrosecondsPerSecond) + in FromTimeVal()
58 result.tv_usec = static_cast<suseconds_t>(Time::kMicrosecondsPerSecond) - 1; in ToTimeVal()
62 result.tv_sec = us / Time::kMicrosecondsPerSecond; in ToTimeVal()
63 result.tv_usec = us % Time::kMicrosecondsPerSecond; in ToTimeVal()
Dtime_now_posix.cc37 result *= Time::kMicrosecondsPerSecond; in ConvertTimespecToMicros()
42 result *= Time::kMicrosecondsPerSecond; in ConvertTimespecToMicros()
76 Microseconds((tv.tv_sec * Time::kMicrosecondsPerSecond + tv.tv_usec) + in TimeNowIgnoringOverride()
Dtime.h400 static constexpr int64_t kMicrosecondsPerSecond = variable
403 kMicrosecondsPerSecond * kSecondsPerMinute;
411 kNanosecondsPerMicrosecond * kMicrosecondsPerSecond;
724 Time::kMicrosecondsPerSecond); in Seconds()
742 return n ? TimeDelta::FromInternalValue(Time::kMicrosecondsPerSecond / in Hertz()
767 return static_cast<double>(delta_) / Time::kMicrosecondsPerSecond; in InSecondsF()
773 return is_inf() ? delta_ : (delta_ / Time::kMicrosecondsPerSecond); in InSeconds()
Dtime_win.cc446 return Microseconds(qpc_value * Time::kMicrosecondsPerSecond / in QPCValueToTimeDelta()
453 return Microseconds((whole_seconds * Time::kMicrosecondsPerSecond) + in QPCValueToTimeDelta()
454 ((leftover_ticks * Time::kMicrosecondsPerSecond) / in QPCValueToTimeDelta()
603 static_cast<int64_t>(thread_time_seconds * Time::kMicrosecondsPerSecond); in GetForThread()
/external/cronet/base/time/
Dtime_conversion_posix.cc19 return TimeDelta(ts.tv_sec * Time::kMicrosecondsPerSecond + in FromTimeSpec()
26 if (microseconds >= Time::kMicrosecondsPerSecond) { in ToTimeSpec()
28 microseconds -= seconds * Time::kMicrosecondsPerSecond; in ToTimeSpec()
38 DCHECK_LT(t.tv_usec, static_cast<int>(Time::kMicrosecondsPerSecond)); in FromTimeVal()
42 if (t.tv_usec == static_cast<suseconds_t>(Time::kMicrosecondsPerSecond) - 1 && in FromTimeVal()
45 return Time((static_cast<int64_t>(t.tv_sec) * Time::kMicrosecondsPerSecond) + in FromTimeVal()
58 result.tv_usec = static_cast<suseconds_t>(Time::kMicrosecondsPerSecond) - 1; in ToTimeVal()
62 result.tv_sec = static_cast<time_t>(us / Time::kMicrosecondsPerSecond); in ToTimeVal()
63 result.tv_usec = us % Time::kMicrosecondsPerSecond; in ToTimeVal()
Dtime_exploded_ios.cc49 (seconds * kMicrosecondsPerSecond) + kTimeTToMicrosecondsOffset; in FromExploded()
79 int64_t microsecond = us_ % kMicrosecondsPerSecond; in Explode()
81 microsecond += kMicrosecondsPerSecond; in Explode()
83 kMicrosecondsPerSecond) - in Explode()
Dtime_now_posix.cc36 result *= base::Time::kMicrosecondsPerSecond; in ConvertTimespecToMicros()
41 result *= base::Time::kMicrosecondsPerSecond; in ConvertTimespecToMicros()
86 Microseconds((tv.tv_sec * Time::kMicrosecondsPerSecond + tv.tv_usec) + in TimeNowIgnoringOverride()
Dpr_time_unittest.cc19 PRTime comparison_time_pdt = 1192477500 * Time::kMicrosecondsPerSecond;
46 mktime(&local_comparison_tm) * Time::kMicrosecondsPerSecond; in SetUp()
62 mktime(&local_comparison_tm_2) * Time::kMicrosecondsPerSecond; in SetUp()
Dtime.h407 static constexpr int64_t kMicrosecondsPerSecond = variable
410 kMicrosecondsPerSecond * kSecondsPerMinute;
418 kNanosecondsPerMicrosecond * kMicrosecondsPerSecond;
898 Time::kMicrosecondsPerSecond); in Seconds()
916 return n ? TimeDelta::FromInternalValue(Time::kMicrosecondsPerSecond / in Hertz()
941 return static_cast<double>(delta_) / Time::kMicrosecondsPerSecond; in InSecondsF()
947 return is_inf() ? delta_ : (delta_ / Time::kMicrosecondsPerSecond); in InSeconds()
Dtime_win.cc527 return Microseconds(qpc_value * Time::kMicrosecondsPerSecond / in QPCValueToTimeDelta()
534 return Microseconds((whole_seconds * Time::kMicrosecondsPerSecond) + in QPCValueToTimeDelta()
535 ((leftover_ticks * Time::kMicrosecondsPerSecond) / in QPCValueToTimeDelta()
683 static_cast<int64_t>(thread_time_seconds * Time::kMicrosecondsPerSecond); in GetForThread()
Dtime_win_unittest.cc88 Time::kMicrosecondsPerSecond / 10000000); in GetTSC()
320 (static_cast<double>(ticks) * Time::kMicrosecondsPerSecond) / in TEST()
/external/libchrome/base/time/
Dtime_conversion_posix.cc19 return TimeDelta(ts.tv_sec * Time::kMicrosecondsPerSecond + in FromTimeSpec()
26 if (microseconds >= Time::kMicrosecondsPerSecond) { in ToTimeSpec()
28 microseconds -= seconds * Time::kMicrosecondsPerSecond; in ToTimeSpec()
38 DCHECK_LT(t.tv_usec, static_cast<int>(Time::kMicrosecondsPerSecond)); in FromTimeVal()
42 if (t.tv_usec == static_cast<suseconds_t>(Time::kMicrosecondsPerSecond) - 1 && in FromTimeVal()
45 return Time((static_cast<int64_t>(t.tv_sec) * Time::kMicrosecondsPerSecond) + in FromTimeVal()
58 result.tv_usec = static_cast<suseconds_t>(Time::kMicrosecondsPerSecond) - 1; in ToTimeVal()
62 result.tv_sec = us / Time::kMicrosecondsPerSecond; in ToTimeVal()
63 result.tv_usec = us % Time::kMicrosecondsPerSecond; in ToTimeVal()
Dtime_now_posix.cc33 result *= base::Time::kMicrosecondsPerSecond; in ConvertTimespecToMicros()
38 result *= base::Time::kMicrosecondsPerSecond; in ConvertTimespecToMicros()
75 (tv.tv_sec * Time::kMicrosecondsPerSecond + tv.tv_usec) + in TimeNowIgnoringOverride()
Dtime.cc82 return static_cast<double>(delta_) / Time::kMicrosecondsPerSecond; in InSecondsF()
90 return delta_ / Time::kMicrosecondsPerSecond; in InSeconds()
219 return (us_ - kTimeTToMicrosecondsOffset) / kMicrosecondsPerSecond; in ToTimeT()
237 static_cast<double>(kMicrosecondsPerSecond)); in ToDoubleT()
Dpr_time_unittest.cc20 PRTime comparison_time_pdt = 1192477500 * Time::kMicrosecondsPerSecond;
47 mktime(&local_comparison_tm) * Time::kMicrosecondsPerSecond; in SetUp()
63 mktime(&local_comparison_tm_2) * Time::kMicrosecondsPerSecond; in SetUp()
Dtime.h336 static const int64_t kMicrosecondsPerSecond = variable
338 static const int64_t kMicrosecondsPerMinute = kMicrosecondsPerSecond * 60;
345 kNanosecondsPerMicrosecond * kMicrosecondsPerSecond;
733 return FromProduct(secs, Time::kMicrosecondsPerSecond); in FromSeconds()
753 return FromDouble(secs * Time::kMicrosecondsPerSecond); in FromSecondsD()
Dtime_unittest.cc653 tval.tv_usec = static_cast<suseconds_t>(Time::kMicrosecondsPerSecond) - 1; in TEST_F()
658 EXPECT_EQ(static_cast<suseconds_t>(Time::kMicrosecondsPerSecond) - 1, in TEST_F()
1186 delta = TimeDelta::FromMicroseconds(Time::kMicrosecondsPerSecond + 1); in TEST()
1297 TimeDelta::FromSeconds(max_int / Time::kMicrosecondsPerSecond + 1) in TEST()
1309 TimeDelta::FromSeconds(min_int / Time::kMicrosecondsPerSecond - 1) in TEST()
1334 TimeDelta::FromSecondsD(max_d / Time::kMicrosecondsPerSecond + 1) in TEST()
1353 TimeDelta::FromSecondsD(min_d / Time::kMicrosecondsPerSecond - 1) in TEST()
/external/pigweed/pw_tls_client/
Dbuild_time.cc20 constexpr uint64_t kMicrosecondsPerSecond = 1'000'000; variable
29 static_cast<time_t>(kBuildTimeMicrosecondsUTC / kMicrosecondsPerSecond); in __wrap_time()
40 tv->tv_sec = kBuildTimeMicrosecondsUTC / kMicrosecondsPerSecond; in __wrap_gettimeofday()
41 tv->tv_usec = kBuildTimeMicrosecondsUTC % kMicrosecondsPerSecond; in __wrap_gettimeofday()
/external/libpalmrejection/
Dchrome_to_android_compatibility.h37 ClampMul(static_cast<int64_t>(n), Time::kMicrosecondsPerSecond)); in Seconds()
47 saturated_cast<int64_t>(n * Time::kMicrosecondsPerSecond)); in Seconds()
/external/libchrome/base/synchronization/
Dcondition_variable_posix.cc83 relative_time.tv_sec = usecs / Time::kMicrosecondsPerSecond; in TimedWait()
85 (usecs % Time::kMicrosecondsPerSecond) * Time::kNanosecondsPerMicrosecond; in TimedWait()
/external/cronet/base/synchronization/
Dcondition_variable_posix.cc95 static_cast<time_t>(usecs / Time::kMicrosecondsPerSecond); in TimedWait()
97 (usecs % Time::kMicrosecondsPerSecond) * Time::kNanosecondsPerMicrosecond; in TimedWait()
/external/libchrome/base/process/
Dprocess_metrics_posix.cc30 ret *= Time::kMicrosecondsPerSecond; in TimeValToMicroseconds()
Dprocess_metrics.cc38 events_delta * base::Time::kMicrosecondsPerSecond; in CalculateEventsPerSecond()
/external/cronet/base/process/
Dprocess_metrics_posix.cc37 ret *= Time::kMicrosecondsPerSecond; in TimeValToMicroseconds()
/external/libchrome/components/timers/
Dalarm_timer_chromeos.cc81 (delay.InMicroseconds() % base::Time::kMicrosecondsPerSecond) * in Reset()

12