Home
last modified time | relevance | path

Searched refs:kTicksPerSecond (Results 1 – 3 of 3) sorted by relevance

/third_party/skia/third_party/externals/abseil-cpp/absl/time/
Dduration.cc82 using time_internal::kTicksPerSecond;
112 *ticks += kTicksPerSecond; in NormalizeTicks()
135 rep_lo = kTicksPerSecond - rep_lo; in MakeU128Ticks()
138 u128 *= static_cast<uint64_t>(kTicksPerSecond); in MakeU128Ticks()
150 const uint64_t hi = l64 / kTicksPerSecond; in MakeDurationFromU128()
152 rep_lo = static_cast<uint32_t>(l64 - hi * kTicksPerSecond); in MakeDurationFromU128()
167 const uint128 kTicksPerSecond128 = static_cast<uint64_t>(kTicksPerSecond); in MakeDurationFromU128()
177 rep_lo = kTicksPerSecond - rep_lo; in MakeDurationFromU128()
256 lo_doub /= kTicksPerSecond; in ScaleDouble()
263 int64_t lo64 = Round(lo_frac * kTicksPerSecond); in ScaleDouble()
[all …]
Dtime.h108 constexpr int64_t kTicksPerSecond = 1000 * 1000 * 1000 * kTicksPerNanosecond; variable
1404 std::round((n - static_cast<double>(int_secs)) * kTicksPerSecond)); in MakePosDoubleDuration()
1405 return ticks < kTicksPerSecond in MakePosDoubleDuration()
1407 : MakeDuration(int_secs + 1, ticks - kTicksPerSecond); in MakePosDoubleDuration()
1415 return (ticks < 0) ? MakeDuration(sec - 1, ticks + kTicksPerSecond) in MakeNormalizedDuration()
1564 time_internal::kTicksPerSecond -
Dduration_test.cc956 kint64max, absl::time_internal::kTicksPerSecond - 1); in TEST()
1402 constexpr uint32_t kTicksPerSecond = absl::time_internal::kTicksPerSecond; in TEST() local
1406 uint32_t tick_vals[] = {0, +999, +999999, +999999999, kTicksPerSecond - 1, in TEST()
1407 0, 1000, 1000000, 1000000000, kTicksPerSecond, in TEST()
1408 1, 1001, 1000001, 1000000001, kTicksPerSecond + 1, in TEST()
1409 2, 1002, 1000002, 1000000002, kTicksPerSecond + 2, in TEST()
1410 3, 1003, 1000003, 1000000003, kTicksPerSecond + 3, in TEST()
1411 4, 1004, 1000004, 1000000004, kTicksPerSecond + 4, in TEST()