diff options
Diffstat (limited to 'includes/timer.inc')
-rw-r--r-- | includes/timer.inc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/includes/timer.inc b/includes/timer.inc new file mode 100644 index 000000000..39034a297 --- /dev/null +++ b/includes/timer.inc @@ -0,0 +1,17 @@ +<? + +$timer = 0; + +function timer_print() { + global $timer; + $stop = explode(" ", microtime()); + $diff = $timer[0] - $stop[0]; + print "<PRE>execution time: $diff ms</PRE>"; +} + +function timer_start() { + global $timer; + $timer = explode(" ", microtime()); +} + +?>
\ No newline at end of file |