프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$duration_format | |||
$minimum_percentage | |||
$percentage_format |
메소드 | 설명 | |
---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
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() |
리턴 | array |