public function pause()
    {
        if ($this->state !== self::STATE_STARTED) {
            return false;
        }

        $time = microtime(true);

        $this->runtime += ($time - $this->startTime);
        $this->startTime = null;
        $this->setState(self::STATE_PAUSED);

        return true;
    }
public function pause()
    {
        if ($this->state !== self::STATE_STARTED) {
            return false;
        }

        $time = microtime(true);

        $this->runtime += ($time - $this->startTime);
        $this->startTime = null;
        $this->setState(self::STATE_PAUSED);

        return true;
    }
public function pause ( ) { if ( $ this -> state !== self :: STATE_STARTED ) { return false ; } $ time = microtime ( true ) ; $ this -> runtime += ( $ time - $ this -> startTime ) ; $ this -> startTime = null ; $ this -> setState ( self :: STATE_PAUSED ) ; return true ; }
Pause the watch.

@return bool is watch paused successfully?
Pause the watch .