Browse Source

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>
master
Rick Hays 6 years ago
parent
commit
8fb52b0d09
  1. 2
      class/timer.php
  2. 4
      timer-example.php

2
class/timer.php

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

4
timer-example.php

@ -1,6 +1,6 @@
<?php
// == TIMER CLASS ====================================
require_once 'classes/timer.php';
require_once 'class/timer.php';
// -- Init Class
$timer = new timer();
//
@ -16,3 +16,5 @@
echo $timer->avg_time(5) . '<br />';
echo $timer->format_avg_time(5);
// ===================================================
$timer = null;
Loading…
Cancel
Save