private function dispatchRequestTime(PostResponseEvent $event)
    {
        $request   = $event->getRequest();
        $startTime = $request->server->get('REQUEST_TIME_FLOAT', $request->server->get('REQUEST_TIME'));
        $time      = microtime(true) - $startTime;
        $time      = round($time * 1000);

        $this->eventDispatcher->dispatch(
            'statsd.time',
            new StatsdEvent($time)
        );
    }
private function dispatchRequestTime(PostResponseEvent $event)
    {
        $request   = $event->getRequest();
        $startTime = $request->server->get('REQUEST_TIME_FLOAT', $request->server->get('REQUEST_TIME'));
        $time      = microtime(true) - $startTime;
        $time      = round($time * 1000);

        $this->eventDispatcher->dispatch(
            'statsd.time',
            new StatsdEvent($time)
        );
    }
private function dispatchRequestTime ( PostResponseEvent $ event ) { $ request = $ event -> getRequest ( ) ; $ startTime = $ request -> server -> get ( 'REQUEST_TIME_FLOAT' , $ request -> server -> get ( 'REQUEST_TIME' ) ) ; $ time = microtime ( true ) - $ startTime ; $ time = round ( $ time * 1000 ) ; $ this -> eventDispatcher -> dispatch ( 'statsd.time' , new StatsdEvent ( $ time ) ) ; }
dispatchRequestTime dispatch the request time.
This time is a "fake" one, because some actions are performed before the initialization of the request
It is ~100ms smaller than the real kernel time.

@param PostResponseEvent $event
dispatchRequestTime dispatch the request time . This time is a fake one because some actions are performed before the initialization of the request It is ~100ms smaller than the real kernel time .