public function addWatch($name)
    {
        if (array_key_exists($name, $this->timers)) {
            return false;
        }

        $watch = new Timer($name);
        $this->timers[$name] = $watch;

        return true;
    }
public function addWatch($name)
    {
        if (array_key_exists($name, $this->timers)) {
            return false;
        }

        $watch = new Timer($name);
        $this->timers[$name] = $watch;

        return true;
    }
public function addWatch ( $ name ) { if ( array_key_exists ( $ name , $ this -> timers ) ) { return false ; } $ watch = new Timer ( $ name ) ; $ this -> timers [ $ name ] = $ watch ; return true ; }
Add a new watch to the StopWatch.

@param string $name Name of watch to be added.
@return bool True if watch added successfully, false otherwise.
Add a new watch to the StopWatch .