diff --git a/api/cora/database.php b/api/cora/database.php index 1b01b25..9dcec1a 100644 --- a/api/cora/database.php +++ b/api/cora/database.php @@ -370,7 +370,7 @@ final class database extends \mysqli { $this->queries[] = [ 'query' => $query, - 'time' => (($stop - $start) * 1000) + 'time' => ($stop - $start) ]; if($result === false) { diff --git a/api/cora/request.php b/api/cora/request.php index 180bd33..f28843c 100644 --- a/api/cora/request.php +++ b/api/cora/request.php @@ -571,7 +571,7 @@ final class request { // a new shutdown handler and no output will be sent to the client. I just // have to handle all problems manually. try { - $this->total_time = round((microtime(true) - $this->begin_timestamp) * 1000); + $this->total_time = round((microtime(true) - $this->begin_timestamp)); // Fix the current working directory. See documentation on this class // variable for details.