src/bbn/util/timer.php
public function start($key='default')
	{
		if ( !isset($this->measures[$key]) ){
      $this->measures[$key] = [
        'num' => 0,
        'sum' => 0,
        'start' => microtime(1)
      ];
    }
    else{
      $this->measures[$key]['start'] = microtime(1);
    }
  }
public function start($key='default')
	{
		if ( !isset($this->measures[$key]) ){
      $this->measures[$key] = [
        'num' => 0,
        'sum' => 0,
        'start' => microtime(1)
      ];
    }
    else{
      $this->measures[$key]['start'] = microtime(1);
    }
  }
public function start ( $ key = 'default' ) { if ( ! isset ( $ this -> measures [ $ key ] ) ) { $ this -> measures [ $ key ] = [ 'num' => 0 , 'sum' => 0 , 'start' => microtime ( 1 ) ] ; } else { $ this -> measures [ $ key ] [ 'start' ] = microtime ( 1 ) ; } }
Starts a timer for a given key

@return void
Starts a timer for a given key