diff --git a/lib/launcher.js b/lib/launcher.js index fc968d46d..c56102226 100644 --- a/lib/launcher.js +++ b/lib/launcher.js @@ -5,6 +5,7 @@ var baseBrowserDecoratorFactory = require('./launchers/base').decoratorFactory; var Launcher = function(emitter, injector) { var browsers = []; var lastUrl; + var lastStartTime; var getBrowserById = function(id) { for (var i = 0; i < browsers.length; i++) { @@ -20,6 +21,8 @@ var Launcher = function(emitter, injector) { var browser; var url = (lastUrl = 'http://' + hostname + ':' + port + urlRoot); + lastStartTime = Date.now(); + names.forEach(function(name) { var locals = { id: ['value', Launcher.generateId()], @@ -117,6 +120,8 @@ var Launcher = function(emitter, injector) { browsers.forEach(function(browser) { if (browser.id === id) { browser.markCaptured(); + log.debug('%s (id %s) captured in %d secs', browser.name, browser.id, + (Date.now() - lastStartTime) / 1000); } }); };