Permalink
Browse files

Use preferred Date.now()

  • Loading branch information...
1 parent 2f803be commit dc2572c01af1ff726c1fd357e33fc97fce8c5a70 @shama shama committed Mar 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 tasks/yuidoc.js
View
2 tasks/yuidoc.js
@@ -64,7 +64,7 @@ module.exports = function(grunt) {
grunt.log.writeln('Output: ' + (options.outdir).cyan);
builder.compile(function() {
- var endtime = (new Date()).getTime();
+ var endtime = Date.now();
grunt.log.writeln('YUIDoc compile completed in ' + ((endtime - starttime) / 1000) + ' seconds');
done();
});

0 comments on commit dc2572c

Please sign in to comment.