Searched refs:HumanReadableElapsedTime (Results 1 – 6 of 6) sorted by relevance
/external/tensorflow/tensorflow/core/platform/ |
D | numbers_test.cc | 101 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 …]
|
D | numbers.h | 174 std::string HumanReadableElapsedTime(double seconds);
|
D | numbers.cc | 510 string HumanReadableElapsedTime(double seconds) { in HumanReadableElapsedTime() function
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | human_readable_profile_builder.cc | 29 using tensorflow::strings::HumanReadableElapsedTime; 37 HumanReadableElapsedTime(CyclesToSeconds(total_cycles_))); in ToString()
|
/external/tensorflow/tensorflow/compiler/xla/ |
D | util.cc | 80 << " time: " << tensorflow::strings::HumanReadableElapsedTime(secs) in StopAndLog() 82 << tensorflow::strings::HumanReadableElapsedTime(stats.cumulative_secs) in StopAndLog() 84 << tensorflow::strings::HumanReadableElapsedTime(stats.max_secs) in StopAndLog()
|
/external/tensorflow/tensorflow/compiler/jit/ |
D | xla_compilation_cache.cc | 477 << tensorflow::strings::HumanReadableElapsedTime(compile_time_us / in CompileImpl() 480 << tensorflow::strings::HumanReadableElapsedTime( in CompileImpl()
|