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

File: Timer.php

Source Location: /Benchmark-1.1/Timer.php

Classes:

Benchmark_Timer

Page Details:

Includes:

require_once('PEAR.php') [line 54]
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 Sun, 16 May 2004 05:05:14 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.