Skip to content

Instantly share code, notes, and snippets.

@u1tnk
Created September 10, 2010 07:53
Show Gist options
  • Save u1tnk/573273 to your computer and use it in GitHub Desktop.
Save u1tnk/573273 to your computer and use it in GitHub Desktop.
require_once 'Benchmark/Timer.php';
$t = new Benchmark_Timer();
$t->start ();
$t->setMarker( 't1' );
for($i=0;$i<10000;$i++){
// 処理
}
$t->setMarker('m2');
$t->stop();
$t->display ();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment