MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / NowMicros

Function NowMicros

tensorflow/compiler/aot/benchmark.cc:41–45  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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.
41static double NowMicros() {
42 struct timeval tv;
43 gettimeofday(&tv, nullptr);
44 return static_cast<uint64>(tv.tv_sec) * 1000000 + tv.tv_usec;
45}
46
47void DumpStatsToStdout(const Stats& stats) {
48 // Compute stats.

Callers 2

BenchmarkFunction · 0.70
CreateUniqueFileNameMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected