adding a little to the .xhtml packager so we can see how long evaluation takes
This commit is contained in:
parent
925b4c4ff0
commit
3eba4cda54
|
@ -375,10 +375,15 @@ var invokeMainModule = function() {
|
||||||
var MACHINE = plt.runtime.currentMachine;
|
var MACHINE = plt.runtime.currentMachine;
|
||||||
invoke(MACHINE,
|
invoke(MACHINE,
|
||||||
function() {
|
function() {
|
||||||
|
var startTime = new Date().valueOf();
|
||||||
plt.runtime.invokeMains(
|
plt.runtime.invokeMains(
|
||||||
MACHINE,
|
MACHINE,
|
||||||
function() {
|
function() {
|
||||||
// On main module invokation success
|
// On main module invokation success:
|
||||||
|
var stopTime = new Date().valueOf();
|
||||||
|
if (console && console.log) {
|
||||||
|
console.log('evaluation took ' + (stopTime - startTime) + ' milliseconds');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
function(MACHINE, e) {
|
function(MACHINE, e) {
|
||||||
// On main module invokation failure
|
// On main module invokation failure
|
||||||
|
|
Loading…
Reference in New Issue
Block a user