Skip to content

Commit

Permalink
fixed docs mention of default format
Browse files Browse the repository at this point in the history
  • Loading branch information
laftho committed Mar 10, 2017
1 parent 6c2a0fb commit 55253b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ app.listen(3000);
*header* - boolean or string of the header name. Defaults to false. If true the default header is X-Response-Time

*format*
* *s* - seconds, default, e.g `1.029382120s`
* *ms* - milliseconds, e.g `1029.382120ms`
* *s* - seconds, e.g `1.029382120s`
* *ms* - milliseconds, default, e.g `1029.382120ms`

*suffix* - boolean, default false; include the second or millisecond suffix

Expand Down Expand Up @@ -72,14 +72,14 @@ app.listen(3000);
const Chronometer = require("express-chrono").Chronometer;
let chrono = new Chronometer({ format: "ms", suffix: true });
let chrono = new Chronometer({ format: "s", suffix: true });
chrono.start();
setTimeout(() => {
chrono.stop();
console.log(chrono); // 100ms
console.log(chrono); // 0.100000000ms
}, 100);
```

0 comments on commit 55253b4

Please sign in to comment.