package Core

 Methods

Initialise the timer. with the current micro time

__construct($output_enabled = false, $trace_enabled = false

Parameters

$output_enabled

$trace_enabled

resume an individual timer

__resumeTimer($name) 

Parameters

$name

suspend an individual timer

__suspendTimer($name) 

Parameters

$name

Measure the elapsed time since the profile class was initialised

elapsedOverall() 

measure the elapsed time of a timer without stoping the timer if it is still running

elapsedTime($name) 

Parameters

$name

Get the current time as accuratly as possible

getMicroTime() 

print out a log of all the timers that were registered

printTimers($enabled = false

Parameters

$enabled

printTrace()

printTrace($enabled = false

Parameters

$enabled

Start an individual timer This will pause the running timer and place it on a stack.

startTimer(string $name, string $desc = ""

Parameters

$name

string

name of the timer

$desc

string

optional $desc description of the timer

Stop an individual timer Restart the timer that was running before this one

stopTimer(string $name) 

Parameters

$name

string

name of the timer

 Properties

 

$count

$count 

Default

 

$cur_timer

$cur_timer 

Default

 

$description

$description 

Default

 

$endTime

$endTime 

Default

 

$initTime

$initTime 

Default

 

$running

$running 

Default

 

$stack

$stack 

Default

 

$startTime

$startTime 

Default

 

$trace

$trace 

Default

 

$trail

$trail 

Default