build-system/tasks/compile.js
function endBuildStep(stepName, targetName, startTime) {
  const endTime = Date.now();
  const executionTime = new Date(endTime - startTime);
  const secs = executionTime.getSeconds();
  const ms = executionTime.getMilliseconds().toString();
  var timeString = '(';
  if (secs === 0) {
    timeString += ms + ' ms)';
  } else {
    timeString += secs + '.' + ms + ' s)';
  }
  if (!process.env.TRAVIS) {
    $$.util.log(
        stepName,
        $$.util.colors.cyan(targetName),
        $$.util.colors.green(timeString));
  }
}
function endBuildStep(stepName, targetName, startTime) {
  const endTime = Date.now();
  const executionTime = new Date(endTime - startTime);
  const secs = executionTime.getSeconds();
  const ms = executionTime.getMilliseconds().toString();
  var timeString = '(';
  if (secs === 0) {
    timeString += ms + ' ms)';
  } else {
    timeString += secs + '.' + ms + ' s)';
  }
  if (!process.env.TRAVIS) {
    $$.util.log(
        stepName,
        $$.util.colors.cyan(targetName),
        $$.util.colors.green(timeString));
  }
}
function endBuildStep ( stepName , targetName , startTime ) { const endTime = Date . now ( ) ; const executionTime = new Date ( endTime - startTime ) ; const secs = executionTime . getSeconds ( ) ; const ms = executionTime . getMilliseconds ( ) . toString ( ) ; var timeString = '(' ; if ( secs === 0 ) { timeString += ms + ' ms)' ; } else { timeString += secs + '.' + ms + ' s)' ; } if ( ! process . env . TRAVIS ) { $$ . util . log ( stepName , $$ . util . colors . cyan ( targetName ) , $$ . util . colors . green ( timeString ) ) ; } }
Stops the timer for the given build step and prints the execution time,
unless we are on Travis.
@param {string} stepName Name of the action, like 'Compiled' or 'Minified'
@param {string} targetName Name of the target, like a filename or path
@param {DOMHighResTimeStamp} startTime Start time of build step
Stops the timer for the given build step and prints the execution time unless we are on Travis .