File/libraries/pear/Benchmark/Timer.php

Description
Classes
Class Description
 class Benchmark_Timer
Includes
 require_once (PEAR.php) (line 50)

Benchmark::Timer

Purpose:

Timing Script Execution, Generating Profiling Information

Example with automatic profiling start, stop, and output:

$timer =& new Benchmark_Timer(true); $timer->setMarker('Marker 1');

Example without automatic profiling:

$timer =& new Benchmark_Timer();

$timer->start(); $timer->setMarker('Marker 1'); $timer->stop();

$profiling = $timer->getProfiling(); echo $profiling->getOutput(); // or $timer->display()

Contributors:

  • Ludovico Magnocavallo <ludo@sumatrasolutions.com> auto profiling and get_output() method

Documentation generated on Fri, 3 Dec 2004 12:27:57 +0000 by phpDocumentor 1.3.0RC3