minor debug text

Seconds, not milliseconds. 

microtime(true) returns "a float, which represents the current time in seconds since the Unix epoch accurate to the nearest microsecond" as per php docs.
This commit is contained in:
igor-silverstripe 2014-04-16 11:49:07 +12:00
parent 4c69d42bd2
commit f720b9026b

View File

@ -143,7 +143,7 @@ class MySQLDatabase extends SS_Database {
if(isset($_REQUEST['showqueries']) && Director::isDev(true)) {
$endtime = round(microtime(true) - $starttime,4);
Debug::message("\n$sql\n{$endtime}ms\n", false);
Debug::message("\n$sql\n{$endtime}s\n", false);
}
if(!$handle && $errorLevel) {