Skip to content

Commit

Permalink
Do not overwrite startTime.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Schmitz committed Jul 6, 2021
1 parent 7e53b51 commit e3857cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion system/CodeIgniter.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,9 @@ protected function bootstrapEnvironment()
*/
protected function startBenchmark()
{
$this->startTime = microtime(true);
if($this->startTime === null) {
$this->startTime = microtime(true);
}

$this->benchmark = Services::timer();
$this->benchmark->start('total_execution', $this->startTime);
Expand Down

0 comments on commit e3857cd

Please sign in to comment.