Property | Type | Description | |
---|---|---|---|
$duration_format | |||
$minimum_percentage | |||
$percentage_format |
Method | Description | |
---|---|---|
buildTree ( |
Return a tree of time periods from a Timer | |
flattenTree ( array &$list = [], array $tree, string $prefix = '' ) : void | Turn the tree of times into a sorted list | |
formatTree ( array $tree ) : array | Nicely format the elapsed time values | |
handlePageOutput ( string $hook, string $type, string $html, array $params ) : string | Append a SCRIPT element to the page output |
Method | Description | |
---|---|---|
analyzePeriod ( string $name, array $times ) : array | boolean | Analyze a time period | |
diffMicrotime ( string $start, string $end ) : float | Calculate a precise time difference. | |
findBeginTime ( array $times ) : string | false | Get the microtime start time | |
findEndTime ( array $times ) : string | false | Get the microtime end time |
public formatTree ( array $tree ) : array | ||
$tree | array | Result of buildTree() |
return | array |