refactor(ngcc): show timings in 1/10ths of a second (#35931)

PR Close #35931
This commit is contained in:
Pete Bacon Darwin 2020-03-10 10:49:17 +00:00 committed by Andrew Kushnir
parent 74e47c503a
commit a0ce8bc236
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ export class ClusterMaster {
// First, check whether all tasks have been completed.
if (this.taskQueue.allTasksCompleted) {
const duration = Math.round((Date.now() - this.processingStartTime) / 1000);
const duration = Math.round((Date.now() - this.processingStartTime) / 100) / 10;
this.logger.debug(`Processed tasks in ${duration}s.`);
return this.finishedDeferred.resolve();

View File

@ -231,7 +231,7 @@ export function mainNgcc(
unprocessableEntryPointPaths.map(path => `\n - ${path}`).join(''));
}
const duration = Math.round((Date.now() - startTime) / 1000);
const duration = Math.round((Date.now() - startTime) / 100) / 10;
logger.debug(
`Analyzed ${entryPoints.length} entry-points in ${duration}s. ` +
`(Total tasks: ${tasks.length})`);