MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / uptime

Function uptime

packages/core/profiling/index.ts:7–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5declare let __stopCPUProfiler: any;
6
7export function uptime(): number {
8 return global.android ? (<any>org).nativescript.Process.getUpTime() : global.__tns_uptime();
9}
10
11export function log(message: string, ...optionalParams: any[]): void {
12 if (global.__nslog) {

Callers 2

constructorMethod · 0.90
main.tsFile · 0.85

Calls 1

getUpTimeMethod · 0.80

Tested by

no test coverage detected