11 const MARKER_BEGIN =
':begin';
12 const MARKER_END =
':end';
23 $this->getTreeNode($keys)[self::MARKER_BEGIN] =
microtime(
true);
33 $this->getTreeNode($keys)[self::MARKER_END] =
microtime(
true);
43 $node = $this->getTreeNode($keys);
44 return isset($node[self::MARKER_END]);
62 private function &getTreeNode(array
$keys) {
65 foreach ($keys as
$key) {
66 if (!isset($arr[$key])) {
begin(array $keys)
Record the start time of a period.
getTimes()
Get the tree of recorded start/end times.
Capture timing info for profiling.
end(array $keys)
Record the end time of a period.
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key
hasEnded(array $keys)
Has the end of the period been recorded?