public function clear($clearContext = false)
    {
        // Clear all stopwatch related values
        $this->start = null;
        $this->stop  = null;
        $this->laps  = [];

        if ($clearContext) {
            $this->context = null;
        }

        return $this;
    }
public function clear($clearContext = false)
    {
        // Clear all stopwatch related values
        $this->start = null;
        $this->stop  = null;
        $this->laps  = [];

        if ($clearContext) {
            $this->context = null;
        }

        return $this;
    }
public function clear ( $ clearContext = false ) { // Clear all stopwatch related values $ this -> start = null ; $ this -> stop = null ; $ this -> laps = [ ] ; if ( $ clearContext ) { $ this -> context = null ; } return $ this ; }
Clear profile.

Resets profile and removes all collected data so it can:
- be started again
- will not be logged at profiler destruction

@param bool $clearContext [optional] Clear context as well?

@return $this
Clear profile .