Public Member Functions | |
| __construct ($prefix='') | |
| reset () | |
| mark ($label) | |
| getElapsed () | |
Private Member Functions | |
| getmicrotime () | |
Private Attributes | |
| $start = 0 | |
| $prefix = '' | |
Definition at line 60 of file objectcache.php.
| 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 }
| 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 }
aliroProfiler::$start = 0 [private] |
Definition at line 61 of file objectcache.php.
aliroProfiler::$prefix = '' [private] |
1.5.5