Fix uptime with snapshot (#4466)

This commit is contained in:
Panayot Cankov
2017-06-28 15:55:11 +03:00
committed by GitHub
parent 655509c64d
commit 08b16b3b5a

View File

@ -3,7 +3,9 @@ declare var __stopCPUProfiler: any;
import { TimerInfo as TimerInfoDefinition, InstrumentationMode } from ".";
export const uptime = global.android ? (<any>org).nativescript.Process.getUpTime : (<any>global).__tns_uptime;
export function uptime() {
return global.android ? (<any>org).nativescript.Process.getUpTime() : (<any>global).__tns_uptime();
}
interface TimerInfo extends TimerInfoDefinition {
totalTime: number;