Use Date.now()

This commit is contained in:
Patrick Niklaus 2017-04-11 21:28:57 +00:00 committed by Patrick Niklaus
parent ee24473cbb
commit d6ac924b94

View File

@ -5,7 +5,7 @@ var fs = require('fs');
var name = process.argv[2]; var name = process.argv[2];
var cmd = process.argv.slice(3).join(' '); var cmd = process.argv.slice(3).join(' ');
var start = +new Date(); var start = Date.now();
exec(cmd, (err) => { exec(cmd, (err) => {
if (err) return console.log(err); if (err) return console.log(err);
var stop = +new Date(); var stop = +new Date();