Home
last modified time | relevance | path

Searched refs:ToUnixNanos (Results 1 – 25 of 50) sorted by relevance

12

/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dabseil-duration-addition.cpp24 i = absl::ToUnixNanos(t) + 5; in f()
43 i = 3 + absl::ToUnixNanos(t); in f()
89 int i = absl::ToUnixNanos(t) + T{}; in foo()
Dabseil-time-subtraction.cpp28 d = absl::Nanoseconds(absl::ToUnixNanos(t) - x); in f()
47 y = x - absl::ToUnixNanos(t); in f()
Dabseil-time-comparison.cpp66 b = x == absl::ToUnixNanos(t1); in f()
/external/abseil-cpp/absl/synchronization/internal/
Dkernel_timeout.h71 int64_t x = ToUnixNanos(t); in MakeNs()
131 int64_t now = ToUnixNanos(absl::Now()); in InMillisecondsFromNow()
/external/angle/third_party/abseil-cpp/absl/synchronization/internal/
Dkernel_timeout.h76 int64_t x = ToUnixNanos(t); in MakeNs()
108 int64_t now = ToUnixNanos(absl::Now()); in InMillisecondsFromNow()
/external/webrtc/third_party/abseil-cpp/absl/synchronization/internal/
Dkernel_timeout.h71 int64_t x = ToUnixNanos(t); in MakeNs()
131 int64_t now = ToUnixNanos(absl::Now()); in InMillisecondsFromNow()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/synchronization/internal/
Dkernel_timeout.h75 int64_t x = ToUnixNanos(t); in MakeNs()
107 int64_t now = ToUnixNanos(absl::Now()); in InMillisecondsFromNow()
/external/libtextclassifier/abseil-cpp/absl/synchronization/internal/
Dkernel_timeout.h75 int64_t x = ToUnixNanos(t); in MakeNs()
107 int64_t now = ToUnixNanos(absl::Now()); in InMillisecondsFromNow()
/external/openscreen/third_party/abseil/src/absl/synchronization/internal/
Dkernel_timeout.h76 int64_t x = ToUnixNanos(t); in MakeNs()
108 int64_t now = ToUnixNanos(absl::Now()); in InMillisecondsFromNow()
/external/tensorflow/tensorflow/core/profiler/rpc/client/
Dremote_profiler_session_manager_test.cc77 options.set_session_creation_timestamp_ns(absl::ToUnixNanos(approx_start)); in TEST()
143 options.set_session_creation_timestamp_ns(absl::ToUnixNanos(approx_start)); in TEST()
Dcapture_profile.cc197 absl::ToUnixNanos(start_timestamp)); in Trace()
/external/openscreen/third_party/abseil/src/absl/time/
Dclock_benchmark.cc44 benchmark::DoNotOptimize(absl::ToUnixNanos(absl::Now())); in BM_Clock_Now_AbslTime_ToUnixNanos()
Dtime_test.cc254 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()
260 EXPECT_EQ(-1, absl::ToUnixNanos(absl::UnixEpoch() - absl::Nanoseconds(1))); in TEST()
262 absl::ToUnixNanos(absl::UnixEpoch() - absl::Nanoseconds(3) / 2)); in TEST()
385 TEST_CONVERSION_ROUND_TRIP(-1, absl::FromUnixNanos, absl::ToUnixNanos, in TEST()
387 TEST_CONVERSION_ROUND_TRIP(0, absl::FromUnixNanos, absl::ToUnixNanos, in TEST()
389 TEST_CONVERSION_ROUND_TRIP(1, absl::FromUnixNanos, absl::ToUnixNanos, in TEST()
[all …]
/external/angle/third_party/abseil-cpp/absl/time/
Dclock_benchmark.cc44 benchmark::DoNotOptimize(absl::ToUnixNanos(absl::Now())); in BM_Clock_Now_AbslTime_ToUnixNanos()
Dtime_test.cc254 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()
260 EXPECT_EQ(-1, absl::ToUnixNanos(absl::UnixEpoch() - absl::Nanoseconds(1))); in TEST()
262 absl::ToUnixNanos(absl::UnixEpoch() - absl::Nanoseconds(3) / 2)); in TEST()
385 TEST_CONVERSION_ROUND_TRIP(-1, absl::FromUnixNanos, absl::ToUnixNanos, in TEST()
387 TEST_CONVERSION_ROUND_TRIP(0, absl::FromUnixNanos, absl::ToUnixNanos, in TEST()
389 TEST_CONVERSION_ROUND_TRIP(1, absl::FromUnixNanos, absl::ToUnixNanos, in TEST()
[all …]
/external/abseil-cpp/absl/time/
Dclock_benchmark.cc44 benchmark::DoNotOptimize(absl::ToUnixNanos(absl::Now())); in BM_Clock_Now_AbslTime_ToUnixNanos()
Dtime_test.cc253 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()
259 EXPECT_EQ(-1, absl::ToUnixNanos(absl::UnixEpoch() - absl::Nanoseconds(1))); in TEST()
261 absl::ToUnixNanos(absl::UnixEpoch() - absl::Nanoseconds(3) / 2)); in TEST()
382 TEST_CONVERSION_ROUND_TRIP(-1, absl::FromUnixNanos, absl::ToUnixNanos, in TEST()
384 TEST_CONVERSION_ROUND_TRIP(0, absl::FromUnixNanos, absl::ToUnixNanos, in TEST()
386 TEST_CONVERSION_ROUND_TRIP(1, absl::FromUnixNanos, absl::ToUnixNanos, in TEST()
[all …]
/external/libtextclassifier/abseil-cpp/absl/time/
Dclock_benchmark.cc44 benchmark::DoNotOptimize(absl::ToUnixNanos(absl::Now())); in BM_Clock_Now_AbslTime_ToUnixNanos()
Dtime_test.cc254 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()
260 EXPECT_EQ(-1, absl::ToUnixNanos(absl::UnixEpoch() - absl::Nanoseconds(1))); in TEST()
262 absl::ToUnixNanos(absl::UnixEpoch() - absl::Nanoseconds(3) / 2)); in TEST()
385 TEST_CONVERSION_ROUND_TRIP(-1, absl::FromUnixNanos, absl::ToUnixNanos, in TEST()
387 TEST_CONVERSION_ROUND_TRIP(0, absl::FromUnixNanos, absl::ToUnixNanos, in TEST()
389 TEST_CONVERSION_ROUND_TRIP(1, absl::FromUnixNanos, absl::ToUnixNanos, in TEST()
[all …]
Dtime_benchmark.cc142 benchmark::DoNotOptimize(ToUnixNanos(t)); in BM_Time_ToUnixNanos()
/external/webrtc/third_party/abseil-cpp/absl/time/
Dclock_benchmark.cc44 benchmark::DoNotOptimize(absl::ToUnixNanos(absl::Now())); in BM_Clock_Now_AbslTime_ToUnixNanos()
Dtime_test.cc253 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()
259 EXPECT_EQ(-1, absl::ToUnixNanos(absl::UnixEpoch() - absl::Nanoseconds(1))); in TEST()
261 absl::ToUnixNanos(absl::UnixEpoch() - absl::Nanoseconds(3) / 2)); in TEST()
382 TEST_CONVERSION_ROUND_TRIP(-1, absl::FromUnixNanos, absl::ToUnixNanos, in TEST()
384 TEST_CONVERSION_ROUND_TRIP(0, absl::FromUnixNanos, absl::ToUnixNanos, in TEST()
386 TEST_CONVERSION_ROUND_TRIP(1, absl::FromUnixNanos, absl::ToUnixNanos, in TEST()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/time/
Dclock_benchmark.cc44 benchmark::DoNotOptimize(absl::ToUnixNanos(absl::Now())); in BM_Clock_Now_AbslTime_ToUnixNanos()
Dtime_test.cc254 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()
260 EXPECT_EQ(-1, absl::ToUnixNanos(absl::UnixEpoch() - absl::Nanoseconds(1))); in TEST()
262 absl::ToUnixNanos(absl::UnixEpoch() - absl::Nanoseconds(3) / 2)); in TEST()
385 TEST_CONVERSION_ROUND_TRIP(-1, absl::FromUnixNanos, absl::ToUnixNanos, in TEST()
387 TEST_CONVERSION_ROUND_TRIP(0, absl::FromUnixNanos, absl::ToUnixNanos, in TEST()
389 TEST_CONVERSION_ROUND_TRIP(1, absl::FromUnixNanos, absl::ToUnixNanos, in TEST()
[all …]
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/Inputs/absl/time/
Dtime.h66 int64_t ToUnixNanos(Time t);

12