Skip to content

Commit 9521545

Browse files
committed
Moving benchmark back to match the same point in CI3 since we will draw the inevitable comparisons and I don't want to explain it over and over.
1 parent 4d66ba1 commit 9521545

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

system/CodeIgniter.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ public function run()
139139
$this->loadFrameworkConstants();
140140
$this->setupAutoloader();
141141
$this->setExceptionHandling();
142-
$this->startBenchmark();
143142
$this->loadComposerAutoloader();
143+
$this->startBenchmark();
144144

145145
//--------------------------------------------------------------------
146146
// Is there a "pre-system" hook?
@@ -247,9 +247,11 @@ protected function setExceptionHandling()
247247
*/
248248
protected function startBenchmark()
249249
{
250+
$this->startTime = microtime(true);
251+
250252
$this->benchmark = Services::timer(true);
251253
$this->benchmark->start('total_execution', $this->startTime);
252-
$this->benchmark->start('bootstrap', $this->startTime);
254+
$this->benchmark->start('bootstrap');
253255
}
254256

255257
//--------------------------------------------------------------------

0 commit comments

Comments
 (0)