Public Member Functions | |
mark ($name) | |
elapsed_time ($point1= '', $point2= '', $decimals=4) | |
memory_usage () | |
Data Fields | |
$marker = array() | |
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
string | a particular marked point |
string | a particular marked point |
integer | the number of decimal places |
mark | ( | $name) |
Set a benchmark marker
Multiple calls to this function can be made so that several execution points can be timed
public
string | $name | name of the marker |
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