[ Index ] |
|
Code source de b2evolution 2.1.0-beta |
[Code source] [Imprimer] [Statistiques]
This file implements the Timer class. This file is part of the evoCore framework - {@link http://evocore.net/} See also {@link http://sourceforge.net/projects/evocms/}.
Author: | fplanque: Francois PLANQUE. |
Author: | blueyed: Daniel HAHLER. |
Copyright: | (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/} |
Version: | $Id: _timer.class.php,v 1.1 2007/06/25 10:58:55 fplanque Exp $ |
Poids: | 254 lignes (6 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
Timer:: (12 méthodes):
Timer()
reset()
start()
stop()
pause()
resume()
get_duration()
get_count()
get_microtime()
get_state()
get_categories()
get_current_microtime()
Timer( $category = NULL ) X-Ref |
Constructor. param: string|NULL If a category is given the timer starts right away. |
reset( $category ) X-Ref |
Reset a timer category. |
start( $category, $log = true ) X-Ref |
Start a timer. |
stop( $category ) X-Ref |
Stops a timer category. It may me resumed later on, see {@link resume()}. This is an alias for {@link pause()}. return: boolean false, if the timer had not been started. |
pause( $category ) X-Ref |
Pauses a timer category. It may me resumed later on, see {@link resume()}. NOTE: The timer needs to be started, either through the {@link Timer() Constructor} or the {@link start()} method. return: boolean false, if the timer had not been started. |
resume( $category ) X-Ref |
Resumes the timer on a category. |
get_duration( $category, $decimals = 3 ) X-Ref |
Get the duration for a given category. param: string Category name param: integer Number of decimals after dot. return: string |
get_count( $category ) X-Ref |
Get number of timer resumes (includes start). return: integer |
get_microtime( $category ) X-Ref |
Get the time in microseconds that was spent in the given category. return: float |
get_state( $category ) X-Ref |
Get the state a category timer is in. return: string 'unknown', 'not initialised', 'running', 'paused' |
get_categories() X-Ref |
Get a list of used categories. return: array |
get_current_microtime() X-Ref |
Get the current time in microseconds. return: float |
Généré le : Thu Nov 29 23:58:50 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |