auTimer

From auWiki
(Redirected from PHP:Class:auTimer)
Jump to navigation Jump to search

The auTimer class is part of the auLib package. It provides stopwatch functions for timing code execution.

Usage

Create a timer using new auTimer(), then check the elapsed time with CheckTime() or CheckElapsedTime().

Public Functions

new auTimer

new auTimer()

Creates a new timer object and resets the time.

CheckElapsedTime

CheckElapsedTime() Checks the time since the timer was last checked.

  • @return = Elapsed time in seconds.

CheckTime

CheckTime()

Checks the time since the timer was created.

  • @return = Elapsed time in seconds.