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

Method startTimer

tfjs-backend-webgl/src/backend_webgl.ts:616–621  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

614 }
615
616 private startTimer(): WebGLQuery|CPUTimerQuery {
617 if (env().getNumber('WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE') > 0) {
618 return this.gpgpu.beginQuery();
619 }
620 return {startMs: util.now(), endMs: null};
621 }
622
623 private endTimer(query: WebGLQuery|CPUTimerQuery): WebGLQuery|CPUTimerQuery {
624 if (env().getNumber('WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE') > 0) {

Callers 1

runWebGLProgramMethod · 0.95

Calls 4

envFunction · 0.90
getNumberMethod · 0.80
beginQueryMethod · 0.80
nowMethod · 0.65

Tested by

no test coverage detected