public static function timeFunction($function, $description = null) {

        $duration = self::time($function);

        Logger::log("Code Block " . ($description ? '"' . $description . '"' : "") . " Executed in " . $duration . " Seconds");

        return $duration;
    }
public static function timeFunction($function, $description = null) {

        $duration = self::time($function);

        Logger::log("Code Block " . ($description ? '"' . $description . '"' : "") . " Executed in " . $duration . " Seconds");

        return $duration;
    }
public static function timeFunction ( $ function , $ description = null ) { $ duration = self :: time ( $ function ) ; Logger :: log ( "Code Block " . ( $ description ? '"' . $ description . '"' : "" ) . " Executed in " . $ duration . " Seconds" ) ; return $ duration ; }
Time the passed function

@param $function
Time the passed function