Changeset 658 for trunk/system/core/Benchmark.php
- Timestamp:
- 10/05/2007 01:15:08 AM (14 months ago)
- Files:
-
- 1 modified
-
trunk/system/core/Benchmark.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/core/Benchmark.php
r657 r658 49 49 public static function get($name, $decimals = 4) 50 50 { 51 $total = FALSE; 52 51 53 if (isset(self::$marks[$name])) 52 54 { … … 56 58 } 57 59 58 returnnumber_format(self::$marks[$name]['stop'] - self::$marks[$name]['start'], $decimals);60 $total = number_format(self::$marks[$name]['stop'] - self::$marks[$name]['start'], $decimals); 59 61 } 62 63 return $total; 60 64 } 61 65 … … 70 74 { 71 75 $benchmarks = array(); 72 foreach (self::$marks as $name => $times) 76 77 foreach (array_keys(self::$marks) as $name) 73 78 { 74 79 $benchmarks[$name] = self::get($name, $decimals);
