Skip to content

Commit

Permalink
Round compilation time
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Banyard committed Mar 27, 2019
1 parent 2c03b7e commit 222d8ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,8 @@ class ForkTsCheckerWebpackPlugin {
private handleServiceMessage(message: Message): void {
if (this.measureTime) {
const delta = this.performance.now() - this.startAt;
this.logger.info(`compilation took: ${delta} ms.`);
const deltaRounded = Math.round(delta *100) / 100;
this.logger.info(`Compilation took: ${deltaRounded} ms.`);
}
if (this.cancellationToken) {
this.cancellationToken.cleanupCancellation();
Expand Down

0 comments on commit 222d8ad

Please sign in to comment.