Clockwork\Request\Timeline::endEvent PHP Method

endEvent() public method

End recording of event specified by name argument, throws exception if specified event is not found
public endEvent ( $name )
    public function endEvent($name)
    {
        if (!isset($this->data[$name])) {
            return false;
        }
        $this->data[$name]['end'] = microtime(true);
        if (is_numeric($this->data[$name]['start'])) {
            $this->data[$name]['duration'] = ($this->data[$name]['end'] - $this->data[$name]['start']) * 1000;
        }
    }