mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
imports improved
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
import application = require("application");
|
||||
var start;
|
||||
if (typeof NSDate !== "undefined") {
|
||||
start = NSDate.date();
|
||||
}
|
||||
else {
|
||||
start = java.lang.System.currentTimeMillis();
|
||||
}
|
||||
|
||||
import application = require("application");
|
||||
|
||||
// Specify custom UIApplicationDelegate.
|
||||
/*
|
||||
@@ -129,4 +137,14 @@ if (application.android) {
|
||||
});
|
||||
}
|
||||
|
||||
var time;
|
||||
if (typeof NSDate !== "undefined") {
|
||||
time = NSDate.date().timeIntervalSinceDate(start) * 1000;
|
||||
}
|
||||
else {
|
||||
time = java.lang.System.currentTimeMillis() - start;
|
||||
}
|
||||
|
||||
console.log(`TIME TO LOAD APP: ${time} ms`);
|
||||
|
||||
application.start();
|
||||
|
||||
Reference in New Issue
Block a user