public function writeTimedLog($message, $operation, array $arguments = array())
    {
        $this->write(sprintf('%-66.66s .. ', $message));
        $timerStart = microtime(true);

        call_user_func_array($operation, $arguments);

        $this->writeln(sprintf('%8.3fs', microtime(true) - $timerStart));
    }
public function writeTimedLog($message, $operation, array $arguments = array())
    {
        $this->write(sprintf('%-66.66s .. ', $message));
        $timerStart = microtime(true);

        call_user_func_array($operation, $arguments);

        $this->writeln(sprintf('%8.3fs', microtime(true) - $timerStart));
    }
public function writeTimedLog ( $ message , $ operation , array $ arguments = array ( ) ) { $ this -> write ( sprintf ( '%-66.66s .. ' , $ message ) ) ; $ timerStart = microtime ( true ) ; call_user_func_array ( $ operation , $ arguments ) ; $ this -> writeln ( sprintf ( '%8.3fs' , microtime ( true ) - $ timerStart ) ) ; }
Executes a callable piece of code and writes an entry to the log detailing how long it took.

@param string   $message
@param callable $operation
@param array    $arguments

@return void
Executes a callable piece of code and writes an entry to the log detailing how long it took .