My Project
 All Data Structures Namespaces Functions Variables
Public Member Functions | Data Fields
CI_Benchmark Class Reference

Public Member Functions

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

Data Fields

 $marker = array()
 

Member Function Documentation

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
stringa particular marked point
stringa particular marked point
integerthe number of decimal places
Returns
mixed
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$namename of the marker
Returns
void
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

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