public function getStatistics()
    {
        $query_timer = 0.0;
        $slow_queries = array();

        foreach (self::$_log as $key => $val) {
            $query_timer += $val['execution_time'];
            if ($val['execution_time'] > 0.0999) {
                $slow_queries[] = $val;
            }
        }

        return array(
            'queries' => self::queryCount(),
            'slow-queries' => $slow_queries,
            'total-query-time' => number_format($query_timer, 4, '.', '')
        );
    }
public function getStatistics()
    {
        $query_timer = 0.0;
        $slow_queries = array();

        foreach (self::$_log as $key => $val) {
            $query_timer += $val['execution_time'];
            if ($val['execution_time'] > 0.0999) {
                $slow_queries[] = $val;
            }
        }

        return array(
            'queries' => self::queryCount(),
            'slow-queries' => $slow_queries,
            'total-query-time' => number_format($query_timer, 4, '.', '')
        );
    }
public function getStatistics ( ) { $ query_timer = 0.0 ; $ slow_queries = array ( ) ; foreach ( self :: $ _log as $ key => $ val ) { $ query_timer += $ val [ 'execution_time' ] ; if ( $ val [ 'execution_time' ] > 0.0999 ) { $ slow_queries [ ] = $ val ; } } return array ( 'queries' => self :: queryCount ( ) , 'slow-queries' => $ slow_queries , 'total-query-time' => number_format ( $ query_timer , 4 , '.' , '' ) ) ; }
Returns some basic statistics from the MySQL class about the
number of queries, the time it took to query and any slow queries.
A slow query is defined as one that took longer than 0.0999 seconds
This function is used by the Profile devkit

@return array
An associative array with the number of queries, an array of slow
queries and the total query time.
Returns some basic statistics from the MySQL class about the number of queries the time it took to query and any slow queries . A slow query is defined as one that took longer than 0 . 0999 seconds This function is used by the Profile devkit