Home
last modified time | relevance | path

Searched refs:Nanoseconds (Results 1 – 25 of 101) sorted by relevance

12345

/external/angle/third_party/abseil-cpp/absl/time/
Dduration_test.cc87 constexpr absl::Duration nano = absl::Nanoseconds(1); in TEST()
96 EXPECT_EQ(nano, absl::Nanoseconds(1)); in TEST()
97 EXPECT_EQ(micro, absl::Nanoseconds(1000)); in TEST()
144 TEST_DURATION_CONVERSION(Nanoseconds); in TEST()
156 constexpr absl::Duration nano = absl::Nanoseconds(N); in TestToConversion()
217 static_assert(absl::Nanoseconds(N) == absl::FromChrono(nanoseconds(N)), ""); in TestFromChronoBasicEquality()
282 EXPECT_EQ(nanoseconds(N), absl::ToChronoNanoseconds(absl::Nanoseconds(N))); in TestToChrono()
321 const auto tick = absl::Nanoseconds(1) / 4; in TEST()
368 TEST_FACTORY_OVERLOADS(absl::Nanoseconds); in TEST()
378 EXPECT_LT(absl::Nanoseconds(1), absl::Nanoseconds(1.5)); in TEST()
[all …]
Dtime_test.cc128 t -= absl::Nanoseconds(1); in TEST()
131 EXPECT_EQ(absl::Nanoseconds(999999999), ci.subsecond); in TEST()
137 absl::Nanoseconds(9); in TEST()
140 EXPECT_EQ(8, ci.subsecond / absl::Nanoseconds(1)); in TEST()
145 const absl::Duration d = absl::Nanoseconds(1); in TEST()
254 EXPECT_EQ(1, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(3) / 2)); in TEST()
255 EXPECT_EQ(1, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(1))); in TEST()
256 EXPECT_EQ(0, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(1) / 2)); in TEST()
257 EXPECT_EQ(0, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(0))); in TEST()
259 absl::ToUnixNanos(absl::UnixEpoch() - absl::Nanoseconds(1) / 2)); in TEST()
[all …]
Dformat_test.cc59 t += absl::Milliseconds(6) + absl::Microseconds(7) + absl::Nanoseconds(8); in TEST()
96 t += absl::Milliseconds(6) + absl::Microseconds(7) + absl::Nanoseconds(8); in TEST()
259 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
260 absl::Nanoseconds(1) / 2, in TEST()
264 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
265 absl::Nanoseconds(3) / 4, in TEST()
275 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
276 absl::Nanoseconds(3) / 4, in TEST()
372 const absl::Duration subseconds = absl::Nanoseconds(654321); in TEST()
/external/abseil-cpp/absl/time/
Dduration_test.cc86 constexpr absl::Duration nano = absl::Nanoseconds(1); in TEST()
95 EXPECT_EQ(nano, absl::Nanoseconds(1)); in TEST()
96 EXPECT_EQ(micro, absl::Nanoseconds(1000)); in TEST()
143 TEST_DURATION_CONVERSION(Nanoseconds); in TEST()
155 constexpr absl::Duration nano = absl::Nanoseconds(N); in TestToConversion()
216 static_assert(absl::Nanoseconds(N) == absl::FromChrono(nanoseconds(N)), ""); in TestFromChronoBasicEquality()
281 EXPECT_EQ(nanoseconds(N), absl::ToChronoNanoseconds(absl::Nanoseconds(N))); in TestToChrono()
320 const auto tick = absl::Nanoseconds(1) / 4; in TEST()
367 TEST_FACTORY_OVERLOADS(absl::Nanoseconds); in TEST()
377 EXPECT_LT(absl::Nanoseconds(1), absl::Nanoseconds(1.5)); in TEST()
[all …]
Dtime_test.cc130 t -= absl::Nanoseconds(1); in TEST()
133 EXPECT_EQ(absl::Nanoseconds(999999999), ci.subsecond); in TEST()
139 absl::Nanoseconds(9); in TEST()
142 EXPECT_EQ(8, ci.subsecond / absl::Nanoseconds(1)); in TEST()
147 const absl::Duration d = absl::Nanoseconds(1); in TEST()
253 EXPECT_EQ(1, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(3) / 2)); in TEST()
254 EXPECT_EQ(1, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(1))); in TEST()
255 EXPECT_EQ(0, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(1) / 2)); in TEST()
256 EXPECT_EQ(0, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(0))); in TEST()
258 absl::ToUnixNanos(absl::UnixEpoch() - absl::Nanoseconds(1) / 2)); in TEST()
[all …]
Dformat_test.cc59 t += absl::Milliseconds(6) + absl::Microseconds(7) + absl::Nanoseconds(8); in TEST()
96 t += absl::Milliseconds(6) + absl::Microseconds(7) + absl::Nanoseconds(8); in TEST()
259 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
260 absl::Nanoseconds(1) / 2, in TEST()
264 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
265 absl::Nanoseconds(3) / 4, in TEST()
275 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
276 absl::Nanoseconds(3) / 4, in TEST()
372 const absl::Duration subseconds = absl::Nanoseconds(654321); in TEST()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/time/
Dduration_test.cc86 constexpr absl::Duration nano = absl::Nanoseconds(1); in TEST()
95 EXPECT_EQ(nano, absl::Nanoseconds(1)); in TEST()
96 EXPECT_EQ(micro, absl::Nanoseconds(1000)); in TEST()
143 TEST_DURATION_CONVERSION(Nanoseconds); in TEST()
155 constexpr absl::Duration nano = absl::Nanoseconds(N); in TestToConversion()
216 static_assert(absl::Nanoseconds(N) == absl::FromChrono(nanoseconds(N)), ""); in TestFromChronoBasicEquality()
281 EXPECT_EQ(nanoseconds(N), absl::ToChronoNanoseconds(absl::Nanoseconds(N))); in TestToChrono()
320 const auto tick = absl::Nanoseconds(1) / 4; in TEST()
367 TEST_FACTORY_OVERLOADS(absl::Nanoseconds); in TEST()
377 EXPECT_LT(absl::Nanoseconds(1), absl::Nanoseconds(1.5)); in TEST()
[all …]
Dtime_test.cc128 t -= absl::Nanoseconds(1); in TEST()
131 EXPECT_EQ(absl::Nanoseconds(999999999), ci.subsecond); in TEST()
137 absl::Nanoseconds(9); in TEST()
140 EXPECT_EQ(8, ci.subsecond / absl::Nanoseconds(1)); in TEST()
145 const absl::Duration d = absl::Nanoseconds(1); in TEST()
254 EXPECT_EQ(1, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(3) / 2)); in TEST()
255 EXPECT_EQ(1, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(1))); in TEST()
256 EXPECT_EQ(0, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(1) / 2)); in TEST()
257 EXPECT_EQ(0, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(0))); in TEST()
259 absl::ToUnixNanos(absl::UnixEpoch() - absl::Nanoseconds(1) / 2)); in TEST()
[all …]
Dformat_test.cc59 t += absl::Milliseconds(6) + absl::Microseconds(7) + absl::Nanoseconds(8); in TEST()
96 t += absl::Milliseconds(6) + absl::Microseconds(7) + absl::Nanoseconds(8); in TEST()
259 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
260 absl::Nanoseconds(1) / 2, in TEST()
264 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
265 absl::Nanoseconds(3) / 4, in TEST()
275 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
276 absl::Nanoseconds(3) / 4, in TEST()
372 const absl::Duration subseconds = absl::Nanoseconds(654321); in TEST()
Dduration_benchmark.cc33 benchmark::DoNotOptimize(absl::Nanoseconds(i)); in BM_Duration_Factory_Nanoseconds()
87 benchmark::DoNotOptimize(absl::Nanoseconds(d)); in BM_Duration_Factory_DoubleNanoseconds()
143 absl::Duration d = absl::Nanoseconds(1); in BM_Duration_Addition()
207 d += absl::FDivDuration(absl::Milliseconds(i), absl::Nanoseconds(1))); in BM_Duration_FDivDuration_Nanoseconds()
219 absl::IDivDuration(absl::Nanoseconds(i), in BM_Duration_IDivDuration_Nanoseconds()
220 absl::Nanoseconds(1), &ignore)); in BM_Duration_IDivDuration_Nanoseconds()
/external/webrtc/third_party/abseil-cpp/absl/time/
Dduration_test.cc86 constexpr absl::Duration nano = absl::Nanoseconds(1); in TEST()
95 EXPECT_EQ(nano, absl::Nanoseconds(1)); in TEST()
96 EXPECT_EQ(micro, absl::Nanoseconds(1000)); in TEST()
143 TEST_DURATION_CONVERSION(Nanoseconds); in TEST()
155 constexpr absl::Duration nano = absl::Nanoseconds(N); in TestToConversion()
216 static_assert(absl::Nanoseconds(N) == absl::FromChrono(nanoseconds(N)), ""); in TestFromChronoBasicEquality()
281 EXPECT_EQ(nanoseconds(N), absl::ToChronoNanoseconds(absl::Nanoseconds(N))); in TestToChrono()
320 const auto tick = absl::Nanoseconds(1) / 4; in TEST()
367 TEST_FACTORY_OVERLOADS(absl::Nanoseconds); in TEST()
377 EXPECT_LT(absl::Nanoseconds(1), absl::Nanoseconds(1.5)); in TEST()
[all …]
Dtime_test.cc130 t -= absl::Nanoseconds(1); in TEST()
133 EXPECT_EQ(absl::Nanoseconds(999999999), ci.subsecond); in TEST()
139 absl::Nanoseconds(9); in TEST()
142 EXPECT_EQ(8, ci.subsecond / absl::Nanoseconds(1)); in TEST()
147 const absl::Duration d = absl::Nanoseconds(1); in TEST()
253 EXPECT_EQ(1, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(3) / 2)); in TEST()
254 EXPECT_EQ(1, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(1))); in TEST()
255 EXPECT_EQ(0, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(1) / 2)); in TEST()
256 EXPECT_EQ(0, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(0))); in TEST()
258 absl::ToUnixNanos(absl::UnixEpoch() - absl::Nanoseconds(1) / 2)); in TEST()
[all …]
Dformat_test.cc59 t += absl::Milliseconds(6) + absl::Microseconds(7) + absl::Nanoseconds(8); in TEST()
96 t += absl::Milliseconds(6) + absl::Microseconds(7) + absl::Nanoseconds(8); in TEST()
259 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
260 absl::Nanoseconds(1) / 2, in TEST()
264 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
265 absl::Nanoseconds(3) / 4, in TEST()
275 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
276 absl::Nanoseconds(3) / 4, in TEST()
372 const absl::Duration subseconds = absl::Nanoseconds(654321); in TEST()
Dduration_benchmark.cc33 benchmark::DoNotOptimize(absl::Nanoseconds(i)); in BM_Duration_Factory_Nanoseconds()
87 benchmark::DoNotOptimize(absl::Nanoseconds(d)); in BM_Duration_Factory_DoubleNanoseconds()
143 absl::Duration d = absl::Nanoseconds(1); in BM_Duration_Addition()
207 d += absl::FDivDuration(absl::Milliseconds(i), absl::Nanoseconds(1))); in BM_Duration_FDivDuration_Nanoseconds()
219 absl::IDivDuration(absl::Nanoseconds(i), in BM_Duration_IDivDuration_Nanoseconds()
220 absl::Nanoseconds(1), &ignore)); in BM_Duration_IDivDuration_Nanoseconds()
/external/libtextclassifier/abseil-cpp/absl/time/
Dduration_test.cc86 constexpr absl::Duration nano = absl::Nanoseconds(1); in TEST()
95 EXPECT_EQ(nano, absl::Nanoseconds(1)); in TEST()
96 EXPECT_EQ(micro, absl::Nanoseconds(1000)); in TEST()
143 TEST_DURATION_CONVERSION(Nanoseconds); in TEST()
155 constexpr absl::Duration nano = absl::Nanoseconds(N); in TestToConversion()
216 static_assert(absl::Nanoseconds(N) == absl::FromChrono(nanoseconds(N)), ""); in TestFromChronoBasicEquality()
281 EXPECT_EQ(nanoseconds(N), absl::ToChronoNanoseconds(absl::Nanoseconds(N))); in TestToChrono()
320 const auto tick = absl::Nanoseconds(1) / 4; in TEST()
367 TEST_FACTORY_OVERLOADS(absl::Nanoseconds); in TEST()
377 EXPECT_LT(absl::Nanoseconds(1), absl::Nanoseconds(1.5)); in TEST()
[all …]
Dtime_test.cc128 t -= absl::Nanoseconds(1); in TEST()
131 EXPECT_EQ(absl::Nanoseconds(999999999), ci.subsecond); in TEST()
137 absl::Nanoseconds(9); in TEST()
140 EXPECT_EQ(8, ci.subsecond / absl::Nanoseconds(1)); in TEST()
145 const absl::Duration d = absl::Nanoseconds(1); in TEST()
254 EXPECT_EQ(1, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(3) / 2)); in TEST()
255 EXPECT_EQ(1, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(1))); in TEST()
256 EXPECT_EQ(0, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(1) / 2)); in TEST()
257 EXPECT_EQ(0, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(0))); in TEST()
259 absl::ToUnixNanos(absl::UnixEpoch() - absl::Nanoseconds(1) / 2)); in TEST()
[all …]
Dformat_test.cc59 t += absl::Milliseconds(6) + absl::Microseconds(7) + absl::Nanoseconds(8); in TEST()
96 t += absl::Milliseconds(6) + absl::Microseconds(7) + absl::Nanoseconds(8); in TEST()
259 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
260 absl::Nanoseconds(1) / 2, in TEST()
264 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
265 absl::Nanoseconds(3) / 4, in TEST()
275 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
276 absl::Nanoseconds(3) / 4, in TEST()
372 const absl::Duration subseconds = absl::Nanoseconds(654321); in TEST()
/external/openscreen/third_party/abseil/src/absl/time/
Dduration_test.cc86 constexpr absl::Duration nano = absl::Nanoseconds(1); in TEST()
95 EXPECT_EQ(nano, absl::Nanoseconds(1)); in TEST()
96 EXPECT_EQ(micro, absl::Nanoseconds(1000)); in TEST()
143 TEST_DURATION_CONVERSION(Nanoseconds); in TEST()
155 constexpr absl::Duration nano = absl::Nanoseconds(N); in TestToConversion()
216 static_assert(absl::Nanoseconds(N) == absl::FromChrono(nanoseconds(N)), ""); in TestFromChronoBasicEquality()
281 EXPECT_EQ(nanoseconds(N), absl::ToChronoNanoseconds(absl::Nanoseconds(N))); in TestToChrono()
320 const auto tick = absl::Nanoseconds(1) / 4; in TEST()
367 TEST_FACTORY_OVERLOADS(absl::Nanoseconds); in TEST()
377 EXPECT_LT(absl::Nanoseconds(1), absl::Nanoseconds(1.5)); in TEST()
[all …]
Dtime_test.cc128 t -= absl::Nanoseconds(1); in TEST()
131 EXPECT_EQ(absl::Nanoseconds(999999999), ci.subsecond); in TEST()
137 absl::Nanoseconds(9); in TEST()
140 EXPECT_EQ(8, ci.subsecond / absl::Nanoseconds(1)); in TEST()
145 const absl::Duration d = absl::Nanoseconds(1); in TEST()
254 EXPECT_EQ(1, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(3) / 2)); in TEST()
255 EXPECT_EQ(1, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(1))); in TEST()
256 EXPECT_EQ(0, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(1) / 2)); in TEST()
257 EXPECT_EQ(0, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(0))); in TEST()
259 absl::ToUnixNanos(absl::UnixEpoch() - absl::Nanoseconds(1) / 2)); in TEST()
[all …]
Dformat_test.cc59 t += absl::Milliseconds(6) + absl::Microseconds(7) + absl::Nanoseconds(8); in TEST()
96 t += absl::Milliseconds(6) + absl::Microseconds(7) + absl::Nanoseconds(8); in TEST()
259 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
260 absl::Nanoseconds(1) / 2, in TEST()
264 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
265 absl::Nanoseconds(3) / 4, in TEST()
275 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
276 absl::Nanoseconds(3) / 4, in TEST()
372 const absl::Duration subseconds = absl::Nanoseconds(654321); in TEST()
Dduration_benchmark.cc33 benchmark::DoNotOptimize(absl::Nanoseconds(i)); in BM_Duration_Factory_Nanoseconds()
87 benchmark::DoNotOptimize(absl::Nanoseconds(d)); in BM_Duration_Factory_DoubleNanoseconds()
143 absl::Duration d = absl::Nanoseconds(1); in BM_Duration_Addition()
207 d += absl::FDivDuration(absl::Milliseconds(i), absl::Nanoseconds(1))); in BM_Duration_FDivDuration_Nanoseconds()
219 absl::IDivDuration(absl::Nanoseconds(i), in BM_Duration_IDivDuration_Nanoseconds()
220 absl::Nanoseconds(1), &ignore)); in BM_Duration_IDivDuration_Nanoseconds()
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dabseil-upgrade-duration-conversions.cpp249 (void)absl::Nanoseconds(ConvertibleTo<int64_t>()); in factoryFunctionPositive()
269 (void)absl::Nanoseconds(ConvertibleTo<char>()); in factoryFunctionPositive()
289 (void)absl::Nanoseconds(ConvertibleTo<float>()); in factoryFunctionPositive()
310 (void)absl::Nanoseconds(char{1}); in factoryFunctionNegative()
311 (void)absl::Nanoseconds(1); in factoryFunctionNegative()
312 (void)absl::Nanoseconds(int64_t{1}); in factoryFunctionNegative()
313 (void)absl::Nanoseconds(1.0f); in factoryFunctionNegative()
335 (void)absl::Nanoseconds(static_cast<int>(ConvertibleTo<int>())); in factoryFunctionNegative()
345 (void)absl::Nanoseconds(c); in templateForFactorySpecialization()
351 (void)absl::Nanoseconds(N); in factoryNonTypeTemplateParamSpecialization()
[all …]
Dabseil-duration-unnecessary-conversion.cpp24 d2 = absl::Nanoseconds(absl::ToDoubleNanoseconds(d1)); in f()
44 d2 = absl::Nanoseconds(absl::ToInt64Nanoseconds(d1)); in f()
63 d2 = absl::Nanoseconds(d1 / absl::Nanoseconds(1)); in f()
82 d2 = absl::Nanoseconds(absl::FDivDuration(d1, absl::Nanoseconds(1))); in f()
104 d2 = absl::Nanoseconds(absl::ToDoubleNanoseconds(d1) * 2); in f()
122 d2 = absl::Nanoseconds(2 * absl::ToDoubleNanoseconds(d1)); in f()
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/
DDurationRewriter.cpp60 InverseMap[DurationScale::Nanoseconds] = std::make_pair( in getDurationInverseForScale()
116 case DurationScale::Nanoseconds: in getDurationFactoryForScale()
134 case DurationScale::Nanoseconds: in getTimeFactoryForScale()
153 case DurationScale::Nanoseconds: in getTimeInverseForScale()
243 {"ToDoubleNanoseconds", DurationScale::Nanoseconds}, in getScaleForDurationInverse()
244 {"ToInt64Nanoseconds", DurationScale::Nanoseconds}}); in getScaleForDurationInverse()
260 {"ToUnixNanos", DurationScale::Nanoseconds}}); in getScaleForTimeInverse()
/external/tensorflow/tensorflow/stream_executor/
Dtimer.cc34 uint64 Timer::Nanoseconds() const { return implementation_->Nanoseconds(); } in Nanoseconds() function in stream_executor::Timer

12345