CI_Benchmark Class Reference

List of all members.

Public Member Functions

 mark ($name)
 elapsed_time ($point1= '', $point2= '', $decimals=4)
 memory_usage ()

Public Attributes

 $marker = array()


Member Function Documentation

CI_Benchmark::elapsed_time ( point1 = '',
point2 = '',
decimals = 4 
)

Calculates the time difference between two marked points.

If the first parameter is empty this function instead returns the {elapsed_time} pseudo-variable. This permits the full system execution time to be shown in a template. The output class will swap the real value for this variable.

public

Parameters:
string a particular marked point
string a particular marked point
integer the number of decimal places
Returns:
mixed

CI_Benchmark::mark ( name  ) 

Set a benchmark marker

Multiple calls to this function can be made so that several execution points can be timed

public

Parameters:
string $name name of the marker
Returns:
void

CI_Benchmark::memory_usage (  ) 

Memory Usage

This function returns the {memory_usage} pseudo-variable. This permits it to be put it anywhere in a template without the memory being calculated until the end. The output class will swap the real value for this variable.

public

Returns:
string


Member Data Documentation

CI_Benchmark::$marker = array()


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

Generated on Sun Nov 16 16:09:07 2008 for CodeIgniter by  doxygen 1.5.7.1