MCPcopy Index your code
hub / github.com/tensorflow/tfjs / time

Method time

tfjs-core/src/engine.ts:1235–1240  ·  view source on GitHub ↗
(query: () => void)

Source from the content-addressed store, hash-verified

1233 }
1234
1235 async time(query: () => void): Promise<TimingInfo> {
1236 const start = now();
1237 const timingInfo = await this.backend.time(query) as TimingInfo;
1238 timingInfo.wallMs = now() - start;
1239 return timingInfo;
1240 }
1241
1242 /**
1243 * Tracks a Tensor in the current scope to be automatically cleaned up

Callers

nothing calls this directly

Calls 2

nowFunction · 0.90
timeMethod · 0.65

Tested by

no test coverage detected