berInterface
{
    static public function getSubscribedEvents()
    {
        return array(
            Events::PRE_PUBLISH  =&gt; 'onStart',
            Events::POST_PUBLISH =&gt; 'onFinish',
        );
    }
&nbsp;
    public function onStart(BaseEvent $event)
    {
        $event-&gt;app-&gt;set('app.timer.start', microtime(true));
    }
&nbsp;
    public function onFinish(BaseEvent $event)
    {
        $event-&gt;app-&gt;set('app.timer.finish', microtime(true));
    }
}</pre>
</div>

<p><strong>easyboo