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;
|
||||
invoke(MACHINE,
|
||||
function() {
|
||||
var startTime = new Date().valueOf();
|
||||
plt.runtime.invokeMains(
|
||||
MACHINE,
|
||||
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) {
|
||||
// On main module invokation failure
|
||||
|
|
Loading…
Reference in New Issue
Block a user