From a0ce8bc23607855453f49c4c2cd55bd669bddf0e Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Tue, 10 Mar 2020 10:49:17 +0000 Subject: [PATCH] refactor(ngcc): show timings in 1/10ths of a second (#35931) PR Close #35931 --- packages/compiler-cli/ngcc/src/execution/cluster/master.ts | 2 +- packages/compiler-cli/ngcc/src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/compiler-cli/ngcc/src/execution/cluster/master.ts b/packages/compiler-cli/ngcc/src/execution/cluster/master.ts index 0fe1a714d5..54399c7d16 100644 --- a/packages/compiler-cli/ngcc/src/execution/cluster/master.ts +++ b/packages/compiler-cli/ngcc/src/execution/cluster/master.ts @@ -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(); diff --git a/packages/compiler-cli/ngcc/src/main.ts b/packages/compiler-cli/ngcc/src/main.ts index b58a021207..bd79cc3ec9 100644 --- a/packages/compiler-cli/ngcc/src/main.ts +++ b/packages/compiler-cli/ngcc/src/main.ts @@ -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})`);