* @ingroup Benchmark
*/
-require_once( __DIR__ . '/Benchmarker.php' );
+require_once __DIR__ . '/Benchmarker.php';
/**
* Maintenance script that benchmarks %MediaWiki hooks.
}
$delta = microtime( true ) - $start;
$pertrial = $delta / $trials;
- return sprintf( "Took %6.2fs",
- $pertrial );
+ return sprintf( "Took %6.3fms",
+ $pertrial * 1000 );
}
/**
}
$maintClass = 'BenchmarkHooks';
-require_once( RUN_MAINTENANCE_IF_MAIN );
+require_once RUN_MAINTENANCE_IF_MAIN;