.

Timer Class Reference
[Lib]

A simple timer. More...

List of all members.

Public Member Functions

  __construct ()
  milliseconds_elapsed ()
  seconds_elapsed ()

Protected Attributes

  $start_time

Detailed Description

A simple timer.

Author:
Gerd Riesselmann

Definition at line 8 of file timer.cls.php.


Constructor & Destructor Documentation

Timer::__construct (  ) 

Definition at line 11 of file timer.cls.php.

00011                                       {
00012                 $this->start_time = microtime(true);
00013         }

Member Function Documentation

Timer::milliseconds_elapsed (  ) 

Definition at line 19 of file timer.cls.php.

00019                                                {
00020                 return 1000 * $this->seconds_elapsed();
00021         }       
Timer::seconds_elapsed (  ) 

Definition at line 15 of file timer.cls.php.

00015                                           {
00016                 return microtime(true) - $this->start_time;
00017         }

Member Data Documentation

Timer::$start_time [protected]

Definition at line 9 of file timer.cls.php.


The documentation for this class was generated from the following file: