@@ -36,7 +36,7 @@ function Watching(compiler, watchOptions, handler) {
3636
3737Watching . prototype . _go = function ( ) {
3838 var self = this ;
39- self . startTime = new Date ( ) . getTime ( ) ;
39+ self . startTime = Date . now ( ) ;
4040 self . running = true ;
4141 self . invalid = false ;
4242 self . compiler . applyPluginsAsync ( "watch-run" , self , function ( err ) {
@@ -61,7 +61,7 @@ Watching.prototype._go = function() {
6161
6262 var stats = new Stats ( compilation ) ;
6363 stats . startTime = self . startTime ;
64- stats . endTime = new Date ( ) . getTime ( ) ;
64+ stats . endTime = Date . now ( ) ;
6565 self . compiler . applyPlugins ( "done" , stats ) ;
6666
6767 self . compiler . applyPluginsAsync ( "additional-pass" , function ( err ) {
@@ -80,7 +80,7 @@ Watching.prototype._go = function() {
8080Watching . prototype . _getStats = function ( compilation ) {
8181 var stats = new Stats ( compilation ) ;
8282 stats . startTime = this . startTime ;
83- stats . endTime = new Date ( ) . getTime ( ) ;
83+ stats . endTime = Date . now ( ) ;
8484 return stats ;
8585} ;
8686
@@ -222,7 +222,7 @@ Compiler.prototype.watch = function(watchOptions, handler) {
222222
223223Compiler . prototype . run = function ( callback ) {
224224 var self = this ;
225- var startTime = new Date ( ) . getTime ( ) ;
225+ var startTime = Date . now ( ) ;
226226
227227 self . applyPluginsAsync ( "before-run" , self , function ( err ) {
228228 if ( err ) return callback ( err ) ;
@@ -239,7 +239,7 @@ Compiler.prototype.run = function(callback) {
239239 if ( self . applyPluginsBailResult ( "should-emit" , compilation ) === false ) {
240240 var stats = new Stats ( compilation ) ;
241241 stats . startTime = startTime ;
242- stats . endTime = new Date ( ) . getTime ( ) ;
242+ stats . endTime = Date . now ( ) ;
243243 self . applyPlugins ( "done" , stats ) ;
244244 return callback ( null , stats ) ;
245245 }
@@ -252,7 +252,7 @@ Compiler.prototype.run = function(callback) {
252252
253253 var stats = new Stats ( compilation ) ;
254254 stats . startTime = startTime ;
255- stats . endTime = new Date ( ) . getTime ( ) ;
255+ stats . endTime = Date . now ( ) ;
256256 self . applyPlugins ( "done" , stats ) ;
257257
258258 self . applyPluginsAsync ( "additional-pass" , function ( err ) {
@@ -267,7 +267,7 @@ Compiler.prototype.run = function(callback) {
267267
268268 var stats = new Stats ( compilation ) ;
269269 stats . startTime = startTime ;
270- stats . endTime = new Date ( ) . getTime ( ) ;
270+ stats . endTime = Date . now ( ) ;
271271 self . applyPlugins ( "done" , stats ) ;
272272 return callback ( null , stats ) ;
273273 } ) ;
0 commit comments