public function endPrintf($string)
    {
        if (empty($string)) {
            return '';
        }
        $this->endTime[$string] = microtime(true);
        $time = $this->endTime[$string] - $this->startTime[$string];

        $this->stdout(
            '/*** End ' . $string . ' ... done (time: ' . sprintf("%.3f", $time) . "s) ***/" . self::ENTER . self::ENTER,
                0,
                Console::FG_GREEN
            );

        return 0;
    }
public function endPrintf($string)
    {
        if (empty($string)) {
            return '';
        }
        $this->endTime[$string] = microtime(true);
        $time = $this->endTime[$string] - $this->startTime[$string];

        $this->stdout(
            '/*** End ' . $string . ' ... done (time: ' . sprintf("%.3f", $time) . "s) ***/" . self::ENTER . self::ENTER,
                0,
                Console::FG_GREEN
            );

        return 0;
    }
public function endPrintf ( $ string ) { if ( empty ( $ string ) ) { return '' ; } $ this -> endTime [ $ string ] = microtime ( true ) ; $ time = $ this -> endTime [ $ string ] - $ this -> startTime [ $ string ] ; $ this -> stdout ( '/*** End ' . $ string . ' ... done (time: ' . sprintf ( "%.3f" , $ time ) . "s) ***/" . self :: ENTER . self :: ENTER , 0 , Console :: FG_GREEN ) ; return 0 ; }
printf some thing at the terminal and record end time
@param string $string
@return int exit code
printf some thing at the terminal and record end time