コード例 #1
0
ファイル: profiler.php プロジェクト: roadrunner/php-profiler
 /**
  * End the timers for this sql node
  *
  * Call this method when the sql query has finished running
  *
  * @return ProfilerSQLNode return a reference to this query, for chaining.
  */
 public function end()
 {
     if (null == $this->ended) {
         $this->ended = microtime(true);
         $this->duration = $this->ended - $this->started;
         $this->profileNode->addQueryDuration($this->duration);
         profiler::addQueryDuration($this->duration);
     }
     return $this;
 }