From 8fb52b0d093b29631a80167610f532c2d770c3c2 Mon Sep 17 00:00:00 2001 From: Rick Hays Date: Mon, 16 Sep 2019 14:55:28 -0500 Subject: [PATCH] 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 --- class/timer.php | 2 +- timer-example.php | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/class/timer.php b/class/timer.php index 893df60..ef5add3 100644 --- a/class/timer.php +++ b/class/timer.php @@ -84,4 +84,4 @@ class timer return $this->udate($format, ($this->endTimer-$this->startTimer)/$avg_count); } } -?> + diff --git a/timer-example.php b/timer-example.php index b4221e5..8fd7cd3 100644 --- a/timer-example.php +++ b/timer-example.php @@ -1,6 +1,6 @@ format_time() . '
'; echo $timer->avg_time(5) . '
'; echo $timer->format_avg_time(5); - // =================================================== +// =================================================== + + $timer = null; \ No newline at end of file