MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / time

Function time

apps/automated/src/tk-unit.ts:31–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31export function time(): number {
32 if (global.android) {
33 return java.lang.System.nanoTime() / 1000000; // 1 ms = 1000000 ns
34 } else {
35 return CACurrentMediaTime() * 1000;
36 }
37}
38
39export function write(message: string, type?: number) {
40 Trace.write(message, Trace.categories.Test, type);

Callers 9

runTestFunction · 0.70
runAsyncFunction · 0.70
checkFinishedFunction · 0.70
waitUntilReadyFunction · 0.70
startFunction · 0.50
stopFunction · 0.50
constructorMethod · 0.50
test_time_returns_numberFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected