Clockwork\Request\Timeline::startEvent PHP Method

startEvent() public method

Start recording a new event, expects name, description and optional time as arguments, if time is not provided, current time will be used, if time equals 'start', request time will be used
public startEvent ( $name, $description, $time = null, array $data = [] )
$data array
    public function startEvent($name, $description, $time = null, array $data = [])
    {
        $this->data[$name] = ['start' => $time ? $time : microtime(true), 'end' => null, 'duration' => null, 'description' => $description, 'data' => $data];
    }