diff --git a/tns-core-modules/profiling/profiling.ts b/tns-core-modules/profiling/profiling.ts index ed132728f..efb5006eb 100644 --- a/tns-core-modules/profiling/profiling.ts +++ b/tns-core-modules/profiling/profiling.ts @@ -3,7 +3,9 @@ declare var __stopCPUProfiler: any; import { TimerInfo as TimerInfoDefinition, InstrumentationMode } from "."; -export const uptime = global.android ? (org).nativescript.Process.getUpTime : (global).__tns_uptime; +export function uptime() { + return global.android ? (org).nativescript.Process.getUpTime() : (global).__tns_uptime(); +} interface TimerInfo extends TimerInfoDefinition { totalTime: number;