Ignore:
Timestamp:
Feb 20, 2014 3:03:59 AM (10 years ago)
Author:
anonymous
Message:

Completed integrating /branches/eli_branch into /trunk. Changes include:

  • Removed closing ?> from end of files
  • Upgrade old-style contructor methods to use construct() instead.
  • Class properties and methods defined as public, private, static or protected
  • Ensure code runs under E_ALL with only mysql_* deprecated warnings
  • Search for the '@' symbol anywhere it might be used to supress runtime errors, then replace with proper error recovery.
  • Run the php cli -l option to check files for syntax errors.
  • Bring tests up-to-date with latest version and methods of PHPUnit
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/lib/ScriptTimer.inc.php

    r396 r468  
    2626class ScriptTimer {
    2727
    28     var $time_format = '%.3f';
    29     var $_timing_start_times = array();
    30     var $_timing_stop_times = array();
    31     var $_timing_cumulative_times = array();
     28    public $time_format = '%.3f';
     29    private $_timing_start_times = array();
     30    private $_timing_stop_times = array();
     31    private $_timing_cumulative_times = array();
    3232   
    33     function start($name='default')
     33    public function start($name='default')
    3434    {
    3535        $this->_timing_start_times[$name] = explode(' ', microtime());
    3636    }
    3737   
    38     function stop($name='default')
     38    public function stop($name='default')
    3939    {
    4040        if (!isset($this->_timing_stop_times[$name]) || !isset($this->_timing_cumulative_times[$name])) {
     
    4646    }
    4747   
    48     function getTime($name='default')
     48    public function getTime($name='default')
    4949    {
    5050        if (!isset($this->_timing_start_times[$name])) {
     
    6262    }
    6363   
    64     function printAll($sort_by_time=false)
     64    public function printAll($sort_by_time=false)
    6565    {
    6666        $names = array_map('strlen', array_keys($this->_timing_start_times));
     
    8181    }
    8282}
    83 
    84 ?>
Note: See TracChangeset for help on using the changeset viewer.