Esempio n. 1
0
 private function _getElapsed()
 {
     $elapsed = [];
     foreach (\UniMapper\Profiler::getResults() as $result) {
         $elapsed[] = $result->elapsed;
     }
     return $elapsed;
 }
Esempio n. 2
0
 public static function afterQueryCallback(\UniMapper\Query $query, $result, $elapsed)
 {
     \UniMapper\Profiler::endQuery($result, $elapsed);
 }