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 5c05ccc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v1.0.1

* [Apply rounding to compilation time](https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/235)

## v1.0.0

* [Going 1.0](https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/218)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fork-ts-checker-webpack-plugin",
"version": "1.0.0",
"version": "1.0.1",
"description": "Runs typescript type checker and linter on separate process.",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
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 5c05ccc

Please sign in to comment.