Returns current wall time in micros. TODO(b/33546473): Refactor tensorflow::Env::NowMicros() so that we can re-use the implementation without pulling in all of the Env dependencies.
| 39 | // TODO(b/33546473): Refactor tensorflow::Env::NowMicros() so that we can re-use |
| 40 | // the implementation without pulling in all of the Env dependencies. |
| 41 | static double NowMicros() { |
| 42 | struct timeval tv; |
| 43 | gettimeofday(&tv, nullptr); |
| 44 | return static_cast<uint64>(tv.tv_sec) * 1000000 + tv.tv_usec; |
| 45 | } |
| 46 | |
| 47 | void DumpStatsToStdout(const Stats& stats) { |
| 48 | // Compute stats. |
no outgoing calls
no test coverage detected