diff options
author | Timothy Warren <tim@timshomepage.net> | 2012-04-23 17:57:38 +0200 |
---|---|---|
committer | Timothy Warren <tim@timshomepage.net> | 2012-04-23 17:57:38 +0200 |
commit | c8a2a60c1075e5f725967962663127dad0f9e2e1 (patch) | |
tree | d877440f9c3ba20f132ad1c91f70600b77ada409 /system/database | |
parent | 31d30bcf206ed2e9168b93f74511708d6bc4b505 (diff) | |
parent | 274f7d1b42d6ed83c3b22106c945590c05599cdc (diff) |
Merge branch 'develop' of git://github.com/EllisLab/CodeIgniter into patch
Diffstat (limited to 'system/database')
-rw-r--r-- | system/database/DB_driver.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index 61b05d52b..cb04c7103 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php @@ -335,7 +335,7 @@ abstract class CI_DB_driver { } // Start the Query Timer - $time_start = list($sm, $ss) = explode(' ', microtime()); + $time_start = microtime(TRUE); // Run the Query if (FALSE === ($this->result_id = $this->simple_query($sql))) @@ -370,12 +370,12 @@ abstract class CI_DB_driver { } // Stop and aggregate the query time results - $time_end = list($em, $es) = explode(' ', microtime()); - $this->benchmark += ($em + $es) - ($sm + $ss); + $time_end = microtime(TRUE); + $this->benchmark += $time_end - $time_start; if ($this->save_queries == TRUE) { - $this->query_times[] = ($em + $es) - ($sm + $ss); + $this->query_times[] = $time_end - $time_start; } // Increment the query counter |