|
|
@ -18,13 +18,16 @@ Quick Example |
|
|
|
<?php |
|
|
|
// == TIMER CLASS ==================================== |
|
|
|
require_once 'classes/timer.php'; |
|
|
|
|
|
|
|
// -- Init Class |
|
|
|
$timer = new timer(); |
|
|
|
// |
|
|
|
|
|
|
|
|
|
|
|
// -- Run the Timer |
|
|
|
$timer->start(); // <- Places a value for Start of Timer |
|
|
|
sleep(5); // <- Pause |
|
|
|
$timer->end(); // <- Places a value for End of Timer |
|
|
|
|
|
|
|
// -- Output the Results |
|
|
|
echo $timer->startTimer . '<br />'; |
|
|
|
echo $timer->endTimer . '<br />'; |
|
|
|