Bug: T67772
Change-Id: I61492a1ad8bf7f574b198af82799b030221bb58b
wfCountDown( 5 );
}
- $time1 = new MWTimestamp();
+ $time1 = microtime( true );
$shared = $this->hasOption( 'doshared' );
$updater->purgeCache();
}
- $time2 = new MWTimestamp();
- $timeDiff = $time2->diff( $time1 );
- $this->output( "\nDone in " . $timeDiff->format( "%i:%S" ) . ".\n" );
+ $time2 = microtime( true );
+
+ $timeDiff = $wgLang->formatTimePeriod( $time2 - $time1 );
+ $this->output( "\nDone in $timeDiff.\n" );
}
function afterFinalSetup() {