Changeset 770 for trunk


Ignore:
Timestamp:
Jan 31, 2014, 12:28:54 AM (11 years ago)
Author:
chronos
Message:
  • Modified: Round query duration to 3 digits.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/Database.php

    r769 r770  
    6868    $Result->PDOStatement = $this->PDO->query($Query);
    6969    if(($this->ShowSQLQuery == true) or ($this->LogSQLQuery == true))
    70       $Duration = ' ; '.(microtime() - $QueryStartTime). ' s';
     70      $Duration = ' ; '.round(microtime() - $QueryStartTime, 3). ' s';
    7171    if($this->LogSQLQuery == true)
    7272      file_put_contents($this->LogFile, $Query.$Duration."\n", FILE_APPEND);
Note: See TracChangeset for help on using the changeset viewer.