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

Method now

tfjs-react-native/src/platform_react_native.ts:163–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161 }
162
163 now(): number {
164 //@ts-ignore
165 if (global.nativePerformanceNow) {
166 //@ts-ignore
167 return global.nativePerformanceNow();
168 }
169 return Date.now();
170 }
171
172 setTimeoutCustom() {
173 throw new Error("react native does not support setTimeoutCustom");

Callers

nothing calls this directly

Calls 1

nowMethod · 0.65

Tested by

no test coverage detected