Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
Profilable.php
Go to the documentation of this file.
1 <?php
2 namespace Elgg;
3 
9 trait Profilable {
10 
14  private $timer;
15 
22  public function setTimer(Timer $timer) {
23  $this->timer = $timer;
24  }
25 }
Capture timing info for profiling.
Definition: Timer.php:9
trait Profilable
Make an object accept a timer.
Definition: Profilable.php:9
setTimer(Timer $timer)
Set a timer that should collect begin/end times for events.
Definition: Profilable.php:22