First Commit

Signed-off-by: Rick Hays <rhays@haysgang.com>
This commit is contained in:
2019-09-16 14:39:59 -05:00
parent e178d0d1d7
commit 7aacf5597e
2 changed files with 105 additions and 0 deletions

18
timer-example.php Normal file
View File

@@ -0,0 +1,18 @@
<?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 />';
echo $timer->time() . '<br />';
echo $timer->format_time() . '<br />';
echo $timer->avg_time(5) . '<br />';
echo $timer->format_avg_time(5);
// ===================================================