Skip to content

Commit

Permalink
Include Time in Verbose Message (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattlyons0 authored and mafintosh committed Dec 14, 2016
1 parent 710a697 commit c86c520
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion bin/cmd.js
Expand Up @@ -59,7 +59,8 @@ function bundle () {
outStream.on('exit', function () {
if (verbose && !didError) {
console.error(bytes + ' bytes written to ' + outfile
+ ' (' + (time / 1000).toFixed(2) + ' seconds)'
+ ' (' + (time / 1000).toFixed(2) + ' seconds) at '
+ new Date().toLocaleTimeString()
);
}
});
Expand Down
12 changes: 6 additions & 6 deletions readme.markdown
Expand Up @@ -31,12 +31,12 @@ You can use `-v` to get more verbose output to show when a file was written and

```
$ watchify browser.js -d -o static/bundle.js -v
610598 bytes written to static/bundle.js (0.23 seconds)
610606 bytes written to static/bundle.js (0.10 seconds)
610597 bytes written to static/bundle.js (0.14 seconds)
610606 bytes written to static/bundle.js (0.08 seconds)
610597 bytes written to static/bundle.js (0.08 seconds)
610597 bytes written to static/bundle.js (0.19 seconds)
610598 bytes written to static/bundle.js (0.23 seconds) at 8:31:25 PM
610606 bytes written to static/bundle.js (0.10 seconds) at 8:45:59 PM
610597 bytes written to static/bundle.js (0.14 seconds) at 8:46:02 PM
610606 bytes written to static/bundle.js (0.08 seconds) at 8:50:13 PM
610597 bytes written to static/bundle.js (0.08 seconds) at 8:58:16 PM
610597 bytes written to static/bundle.js (0.19 seconds) at 9:10:45 PM
```

# usage
Expand Down

0 comments on commit c86c520

Please sign in to comment.