aliroProfiler Class Reference

List of all members.

Public Member Functions

 __construct ($prefix='')
 reset ()
 mark ($label)
 getElapsed ()

Private Member Functions

 getmicrotime ()

Private Attributes

 $start = 0
 $prefix = ''


Detailed Description

Definition at line 60 of file objectcache.php.


Constructor & Destructor Documentation

aliroProfiler::__construct ( prefix = ''  ) 

Definition at line 64 of file objectcache.php.

References $prefix, and getmicrotime().

00064                                         {
00065         $this->start = $this->getmicrotime();
00066         $this->prefix = $prefix;
00067     }


Member Function Documentation

aliroProfiler::reset (  ) 

Definition at line 69 of file objectcache.php.

References getmicrotime().

00069                              {
00070         $this->start = $this->getmicrotime();
00071     }

aliroProfiler::mark ( label  ) 

Definition at line 73 of file objectcache.php.

References getmicrotime().

00073                                    {
00074         return sprintf ( "\n$this->prefix %.3f $label", $this->getmicrotime() - $this->start );
00075     }

aliroProfiler::getElapsed (  ) 

Definition at line 77 of file objectcache.php.

References getmicrotime().

00077                                   {
00078         return $this->getmicrotime() - $this->start;
00079     }

aliroProfiler::getmicrotime (  )  [private]

Definition at line 81 of file objectcache.php.

Referenced by __construct(), getElapsed(), mark(), and reset().

00081                                    {
00082         list($usec, $sec) = explode(" ",microtime());
00083         return ((float)$usec + (float)$sec);
00084     }


Member Data Documentation

aliroProfiler::$start = 0 [private]

Definition at line 61 of file objectcache.php.

aliroProfiler::$prefix = '' [private]

Definition at line 62 of file objectcache.php.

Referenced by __construct().


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

Generated on Thu Apr 17 13:03:30 2008 for ALIRO by  doxygen 1.5.5