Home
last modified time | relevance | path

Searched refs:HumanReadableElapsedTime (Results 1 – 6 of 6) sorted by relevance

/external/tensorflow/tensorflow/core/lib/strings/
Dnumbers_test.cc101 TEST(HumanReadableElapsedTime, Basic) { in TEST() argument
102 EXPECT_EQ(HumanReadableElapsedTime(-10), "-10 s"); in TEST()
103 EXPECT_EQ(HumanReadableElapsedTime(-0.001), "-1 ms"); in TEST()
104 EXPECT_EQ(HumanReadableElapsedTime(-60.0), "-1 min"); in TEST()
105 EXPECT_EQ(HumanReadableElapsedTime(0.00000001), "0.01 us"); in TEST()
106 EXPECT_EQ(HumanReadableElapsedTime(0.0000012), "1.2 us"); in TEST()
107 EXPECT_EQ(HumanReadableElapsedTime(0.0012), "1.2 ms"); in TEST()
108 EXPECT_EQ(HumanReadableElapsedTime(0.12), "120 ms"); in TEST()
109 EXPECT_EQ(HumanReadableElapsedTime(1.12), "1.12 s"); in TEST()
110 EXPECT_EQ(HumanReadableElapsedTime(90.0), "1.5 min"); in TEST()
[all …]
Dnumbers.h174 string HumanReadableElapsedTime(double seconds);
Dnumbers.cc494 string HumanReadableElapsedTime(double seconds) { in HumanReadableElapsedTime() function
/external/tensorflow/tensorflow/compiler/xla/service/
Dhuman_readable_profile_builder.cc29 using tensorflow::strings::HumanReadableElapsedTime;
37 HumanReadableElapsedTime(CyclesToSeconds(total_cycles_))); in ToString()
/external/tensorflow/tensorflow/compiler/jit/
Dxla_compilation_cache.cc358 << tensorflow::strings::HumanReadableElapsedTime(compile_time_us / in CompileImpl()
361 << tensorflow::strings::HumanReadableElapsedTime( in CompileImpl()
/external/tensorflow/tensorflow/compiler/xla/
Dutil.cc55 << tensorflow::strings::HumanReadableElapsedTime(secs); in ~ScopedLoggingTimer()