PhpSpec\Formatter\PrettyFormatter::printSlowTime PHP Method

printSlowTime() protected method

protected printSlowTime ( ExampleEvent $event )
$event PhpSpec\Event\ExampleEvent
    protected function printSlowTime(ExampleEvent $event)
    {
        $io = $this->getIO();
        $ms = $event->getTime() * 1000;
        if ($ms > 100) {
            $io->write(sprintf(' <failed>(%sms)</failed>', round($ms)));
        } elseif ($ms > 50) {
            $io->write(sprintf(' <pending>(%sms)</pending>', round($ms)));
        }
    }