[ Index ]
 

Code source de GeekLog 1.4.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/system/classes/ -> timer.class.php (sommaire)

(pas de description)

Poids: 182 lignes (5 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

timerobject:: (7 méthodes):
  timerobject()
  setPercision()
  startTimer()
  stopTimer()
  restart()
  getElapsedTime()
  _setElapsedTime()


Classe: timerobject  - X-Ref

This class is used to time program execution. This is particularly handy for
performance trouble shooting.

timerobject()   X-Ref
Constructor

This initializes the timerobject and sets the default
percision of results to two decimal places


setPercision($num_dec_places)   X-Ref
Set percision on timer results

This sets how many significant digits get
sent back when elapsedTime is called

param: int     $num_dec_places     Number of significant digits

startTimer()   X-Ref
Starts the timer


stopTimer()   X-Ref
Stops the timer

return: float   elapsed time to degree of percision specified

restart()   X-Ref
Restarts the timer

Same as starTimer excepts this clears everything out first


getElapsedTime()   X-Ref
Gets the elapsed time

This returns the elapsed time with the proper number of
significant digits

return: float   Elasped time in seconds formatted to degree of percision specified

_setElapsedTime()   X-Ref
Sets the elapsed time

once stop timer is called this gets called to calculate
the elapsed time for later retrieval




Généré le : Wed Nov 21 12:27:40 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics