Capture timing info for profiling.  
 More...
Capture timing info for profiling. 
Definition at line 10 of file Timer.php.
◆ begin()
      
        
          | Elgg\Timer::begin | ( | array | $keys | ) |  | 
      
 
Record the start time of a period. 
- Parameters
- 
  
    | string[] | $keys | Keys to identify period. E.g. ['startup', FUNCTION] |  
 
- Returns
- void 
Definition at line 22 of file Timer.php.
 
 
◆ end()
      
        
          | Elgg\Timer::end | ( | array | $keys | ) |  | 
      
 
Record the end time of a period. 
- Parameters
- 
  
    | string[] | $keys | Keys to identify period. E.g. ['startup', FUNCTION] |  
 
- Returns
- void 
Definition at line 32 of file Timer.php.
 
 
◆ getTimes()
Get the tree of recorded start/end times. 
- Returns
- array 
Definition at line 52 of file Timer.php.
 
 
◆ hasEnded()
      
        
          | Elgg\Timer::hasEnded | ( | array | $keys | ) |  | 
      
 
Has the end of the period been recorded? 
- Parameters
- 
  
    | string[] | $keys | Keys to identify period. E.g. ['startup', FUNCTION] |  
 
- Returns
- bool 
Definition at line 42 of file Timer.php.
 
 
◆ MARKER_BEGIN
      
        
          | const Elgg\Timer::MARKER_BEGIN = ':begin' | 
      
 
 
◆ MARKER_END
      
        
          | const Elgg\Timer::MARKER_END = ':end' | 
      
 
 
The documentation for this class was generated from the following file: