Changeset 12 for Common/Database.php


Ignore:
Timestamp:
Apr 7, 2020, 9:14:24 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Small updates.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Common/Database.php

    r10 r12  
    22
    33// Extended database class
    4 // Date: 2016-01-11
     4// Date: 2020-04-07
    55
    66function microtime_float()
     
    9393    if (!$this->Connected()) throw new Exception(T('Not connected to database'));
    9494    if (($this->ShowSQLQuery == true) or ($this->LogSQLQuery == true)) $QueryStartTime = microtime_float();
    95     $this->LastQuery = $Query;
    96     //echo('a'.$this->ShowSQLQuery.'<'.$QueryStartTime.', '.microtime_float());
     95    $this->LastQuery = $Query;   
    9796    if (($this->ShowSQLQuery == true) or ($this->LogSQLQuery == true))
    9897      $Duration = ' ; '.round(microtime_float() - $QueryStartTime, 4). ' s';
Note: See TracChangeset for help on using the changeset viewer.