Show
Ignore:
Timestamp:
10/05/2007 01:15:08 AM (14 months ago)
Author:
Shadowhand
Message:

Cleaned up Profiler and related files.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/core/Benchmark.php

    r657 r658  
    4949        public static function get($name, $decimals = 4) 
    5050        { 
     51                $total = FALSE; 
     52 
    5153                if (isset(self::$marks[$name])) 
    5254                { 
     
    5658                        } 
    5759 
    58                         return number_format(self::$marks[$name]['stop'] - self::$marks[$name]['start'], $decimals); 
     60                        $total = number_format(self::$marks[$name]['stop'] - self::$marks[$name]['start'], $decimals); 
    5961                } 
     62 
     63                return $total; 
    6064        } 
    6165 
     
    7074        { 
    7175                $benchmarks = array(); 
    72                 foreach (self::$marks as $name => $times) 
     76 
     77                foreach (array_keys(self::$marks) as $name) 
    7378                { 
    7479                        $benchmarks[$name] = self::get($name, $decimals);