1) Removed ending PHP ie(?>) in class.

2) Corrected class path, as it had the old name.
2) Nulled timer at the end of the example.

Signed-off-by: Rick Hays <rhays@haysgang.com>
This commit is contained in:
2019-09-16 14:55:28 -05:00
parent ff0483dea9
commit 8fb52b0d09
2 changed files with 5 additions and 3 deletions

View File

@@ -84,4 +84,4 @@ class timer
return $this->udate($format, ($this->endTimer-$this->startTimer)/$avg_count);
}
}
?>

View File

@@ -1,6 +1,6 @@
<?php
// == TIMER CLASS ====================================
require_once 'classes/timer.php';
require_once 'class/timer.php';
// -- Init Class
$timer = new timer();
//
@@ -15,4 +15,6 @@
echo $timer->format_time() . '<br />';
echo $timer->avg_time(5) . '<br />';
echo $timer->format_avg_time(5);
// ===================================================
// ===================================================
$timer = null;