src/Rocketeer/Services/Display/QueueTimer.php
public function time(IdentifierInterface $entity, callable $callback)
    {
        // Start timer, execute callback, close timer
        $timerStart = microtime(true);
        $results = $callback();
        $time = round(microtime(true) - $timerStart, 4);

        $this->saveTime($entity, $time);

        return $results;
    }
public function time(IdentifierInterface $entity, callable $callback)
    {
        // Start timer, execute callback, close timer
        $timerStart = microtime(true);
        $results = $callback();
        $time = round(microtime(true) - $timerStart, 4);

        $this->saveTime($entity, $time);

        return $results;
    }
public function time ( IdentifierInterface $ entity , callable $ callback ) { // Start timer, execute callback, close timer $ timerStart = microtime ( true ) ; $ results = $ callback ( ) ; $ time = round ( microtime ( true ) - $ timerStart , 4 ) ; $ this -> saveTime ( $ entity , $ time ) ; return $ results ; }
Time a task operation.

@param IdentifierInterface $entity
@param callable            $callback

@return mixed
Time a task operation .