Skip to content

Commit

Permalink
refactor(ngcc): show timings in 1/10ths of a second (angular#35931)
Browse files Browse the repository at this point in the history
PR Close angular#35931
  • Loading branch information
petebacondarwin authored and AndrewKushnir committed Mar 11, 2020
1 parent 74e47c5 commit a0ce8bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/compiler-cli/ngcc/src/execution/cluster/master.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion packages/compiler-cli/ngcc/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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})`);
Expand Down

0 comments on commit a0ce8bc

Please sign in to comment.