Elgg  Version 2.3
Public Member Functions | Public Attributes | List of all members
Elgg\Timer Class Reference

Capture timing info for profiling. More...

Public Member Functions

 begin (array $keys)
 Record the start time of a period. More...
 
 end (array $keys)
 Record the end time of a period. More...
 
 hasEnded (array $keys)
 Has the end of the period been recorded? More...
 
 getTimes ()
 Get the tree of recorded start/end times. More...
 

Public Attributes

const MARKER_BEGIN = ':begin'
 
const MARKER_END = ':end'
 

Detailed Description

Capture timing info for profiling.

private

Definition at line 9 of file Timer.php.

Member Function Documentation

Elgg\Timer::begin ( array  $keys)

Record the start time of a period.

Parameters
string[]$keys Keys to identify period. E.g. ['startup', FUNCTION]
Returns
void

Definition at line 21 of file Timer.php.

Elgg\Timer::end ( array  $keys)

Record the end time of a period.

Parameters
string[]$keys Keys to identify period. E.g. ['startup', FUNCTION]
Returns
void

Definition at line 31 of file Timer.php.

Elgg\Timer::getTimes ( )

Get the tree of recorded start/end times.

Returns
array

Definition at line 51 of file Timer.php.

Elgg\Timer::hasEnded ( array  $keys)

Has the end of the period been recorded?

Parameters
string[]$keys Keys to identify period. E.g. ['startup', FUNCTION]
Returns
bool

Definition at line 41 of file Timer.php.

Member Data Documentation

const Elgg\Timer::MARKER_BEGIN = ':begin'

Definition at line 10 of file Timer.php.

const Elgg\Timer::MARKER_END = ':end'

Definition at line 11 of file Timer.php.


The documentation for this class was generated from the following file: