Esempio n. 1
0
 /**
  * Increments sql execution time.
  *
  * @param float $time Time in seconds to add.
  *
  * @return void
  */
 public function addTime($time)
 {
     $time = (double) $time;
     $this->time += $time;
     $this->tracker->addTime($time);
 }
Esempio n. 2
0
 public function refinishQuery()
 {
     $this->finishTime = Helper::getCurrentMicrotime();
     $this->time += $this->finishTime - $this->startTime;
     $this->tracker->addTime($this->time);
 }