[Pkg-javascript-commits] [node-sha.js] 67/237: set debug mode to show time elapsed
Bastien Roucariès
rouca at moszumanska.debian.org
Fri May 5 09:03:17 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-sha.js.
commit 36d46393bde62248e5949b1954b61a96e7220c1c
Author: Dominic Tarr <dominic.tarr at gmail.com>
Date: Tue Dec 31 12:35:55 2013 +0700
set debug mode to show time elapsed
---
bin.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bin.js b/bin.js
index 48c9447..3adebec 100755
--- a/bin.js
+++ b/bin.js
@@ -7,13 +7,14 @@ var argv = process.argv.slice(2)
if(/--help|-h/.test(argv[0])) return usage()
function stream (alg, s) {
+ var start = Date.now()
var hash = createHash(alg || 'sha1')
s
.on('data', function (data) {
hash.update(data)
})
.on('end', function (data) {
- console.log(hash.digest('hex'))
+ console.log(hash.digest('hex'), Date.now() - start)
})
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-sha.js.git
More information about the Pkg-javascript-commits
mailing list