Show
Ignore:
Timestamp:
10/04/2007 10:03:56 PM (14 months ago)
Author:
PugFish
Message:

Added Profiler library
Added get_all() to Benchmark
Changed $benchmark in Database to public

Files:
1 modified

Legend:

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

    r644 r654  
    6060        } 
    6161 
     62        /** 
     63         * Get the elapsed time for all benchmark points 
     64         * 
     65         * @access  public 
     66         * @return  array 
     67         */ 
     68        public static function get_all() 
     69        { 
     70                $benchmarks = array(); 
     71                foreach (self::$marks as $name => $times) 
     72                { 
     73                        $benchmarks[$name] = self::get($name); 
     74                } 
     75 
     76                return $benchmarks; 
     77        } 
     78 
    6279} // End Benchmark Class