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})`);