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

Class: Benchmark_Timer

Source Location: /Benchmark-1.2.1/Timer.php

Class Overview

PEAR
   |
   --Benchmark_Timer



Methods


Child classes:

Benchmark_Iterate
Benchmark::Benchmark_Iterate

Inherited Variables

Inherited Methods


Class Details

[line 52]


[ Top ]


Method Detail

Benchmark_Timer (Constructor)   [line 83]

Benchmark_Timer Benchmark_Timer( [mixed $auto = false])

Constructor, starts profiling recording
  • Access: public

[ Top ]

display   [line 161]

void display( )

Prints the information returned by getOutput

[ Top ]

getOutput   [line 109]

void getOutput( )

Return formatted profiling information.
  • Access: public
  • See: getProfiling()

[ Top ]

getProfiling   [line 225]

array getProfiling( )

Returns profiling information.

$profiling[x]['name'] = name of marker x $profiling[x]['time'] = time index of marker x $profiling[x]['diff'] = execution time from marker x-1 to this marker x $profiling[x]['total'] = total execution time up to marker x

  • Access: public

[ Top ]

setMarker   [line 193]

void setMarker( string $name)

Set marker.
  • Access: public
  • See: start(), stop()

Parameters:

string   $name     name of the marker to be set

[ Top ]

start   [line 172]

void start( )

Set "Start" marker.
  • Access: public
  • See: setMarker(), stop()

[ Top ]

stop   [line 182]

void stop( )

Set "Stop" marker.
  • Access: public
  • See: setMarker(), start()

[ Top ]

timeElapsed   [line 206]

double timeElapsed( [string $start = 'Start'], [string $end = 'Stop'])

Returns the time elapsed betweens two markers.
  • Return: time elapsed between $start and $end
  • Access: public

Parameters:

string   $start     start marker, defaults to "Start"
string   $end     end marker, defaults to "Stop"

[ Top ]


Documentation generated on Fri, 30 Apr 2004 23:22:16 +0200 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.