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

File: Timer.php

Source Location: /Benchmark-1.2.1/Timer.php

Classes:

Benchmark_Timer

Page Details:

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, 30 Apr 2004 23:22:16 +0200 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.