Location: PHPKode > scripts > TimeCheck > timecheck/example.php
<?php
include "TimeCheck.inc";

$tc = new TimeCheck();

$tc->begin("Starting timer...");

for ($i=0; $i<10000; $i++)
	$z = $i % 33;

$tc->mark("Loop1 Complete");

sleep(30);

$tc->mark("Sleep Complete");

for ($i=0; $i<10000; $i++)
	$z = $i % 44;

$tc->mark("Loop2 Complete");

$tc->displayMarks();

?>
Return current item: TimeCheck