Zikula_Core
[ class tree: Zikula_Core ] [ index: Zikula_Core ] [ all elements ]

Class: Timer

Source Location: /includes/pnobjlib/debug.php

Class Overview


Simple timer class to measure code execution times.


Variables

Methods



Class Details

[line 187]
Simple timer class to measure code execution times.

You can take multiple snapshots by calling the snap() function. For multiple measurements with 1 Timer, some basic statistics are computed.




[ Top ]


Class Variables

$name =

[line 189]


Type:   mixed


[ Top ]

$times =

[line 190]


Type:   mixed


[ Top ]



Class Methods


constructor Timer [line 198]

Timer Timer( [name $name = ''])

Constructor



Parameters:

name   $name   The name of the timer

[ Top ]

method get_microtime [line 222]

void get_microtime( )

return the current microtime



[ Top ]

method reset [line 211]

void reset( [name $name = ''])

reset the timer



Parameters:

name   $name   The name of the timer

[ Top ]

method snap [line 325]

void snap( [ $doStats = false])

take a snapshot while continuing the timing run



Parameters:

   $doStats  

[ Top ]

method start [line 233]

void start( )

start the timer



[ Top ]

method stop [line 242]

void stop( [ $insertNewRecord = true])

stop the timer



Parameters:

   $insertNewRecord  

[ Top ]

method stop_multiple [line 275]

void stop_multiple( )

print the timer results for multiple measurement



[ Top ]

method stop_single [line 257]

void stop_single( )

print the timer results for a single measurement



[ Top ]


Documentation generated on Fri, 18 Jul 2008 21:44:52 +0200 by phpDocumentor 1.4.1