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

Function StartTiming

tensorflow/core/platform/default/test_benchmark.cc:288–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286void BytesProcessed(int64 n) { bytes_processed = n; }
287void ItemsProcessed(int64 n) { items_processed = n; }
288void StartTiming() {
289 if (start_time == 0) start_time = env->NowMicros();
290}
291void StopTiming() {
292 if (start_time != 0) {
293 accum_time += (env->NowMicros() - start_time);

Callers 15

BM_CalibrateWorkLoopFunction · 0.85
BM_TrivialFactoryFunction · 0.85
BM_ArgumentFactoryFunction · 0.85
BM_StatusOrFactoryFunction · 0.85
BM_ArgumentFactoryFailFunction · 0.85
BM_StatusOrFactoryFailFunction · 0.85
BM_NAMEFunction · 0.85
BM_ConstructFunction · 0.85

Calls 1

NowMicrosMethod · 0.45

Tested by

no test coverage detected