src/main/java/com/xceptance/neodymium/visual/ai/util/Helper.java
/**
     * Progress bar which is used to visualize the progress for the command line tool. Does not work properly in
     * eclipse.
     * 
     * @param progress
     *            Double value of the current progress.
     * @param estimatedTime
     *            long value for used time
     * @param size
     *            Size of the Progress bar.
     * @param index
     *            Current position in the progress bar.
     */
Progress bar which is used to visualize the progress for the command line tool. Does not work properly in
eclipse.

@param progress
Double value of the current progress.
@param estimatedTime
long value for used time
@param size
Size of the Progress bar.
@param index
Current position in the progress bar.
Progress bar which is used to visualize the progress for the command line tool . Does not work properly in eclipse . @param progress Double value of the current progress . @param estimatedTime long value for used time @param size Size of the Progress bar . @param index Current position in the progress bar .
public static void updatePercentageBar(double progress, long estimatedTime, int size, int index)
    {
        int percent = (int) Math.round(progress * 100);
        if (Math.abs(percent - lastPercent) >= 1)
        {
            StringBuilder template = new StringBuilder("\r[");
            for (int i = 0; i < 50; i++)
            {
                if (i < percent * .5)
                {
                    template.append("=");
                }
                else if (i == percent * .5)
                {
                    template.append(">");
                }
                else
                {
                    template.append(" ");
                }
            }
            template.append("] %s   ");
            if (percent >= 100)
            {
                template.append("%n");
            }
            String approximatedTime = Helper.numberConverterToTime((((double) estimatedTime / 1000000000.0) * (size + 1 - index)));
            System.out.printf(template.toString(), percent + "%  estimated time " + Helper.numberConverterToTime((double) estimatedTime / 1000000000.0) + "s" +
                                                   " approximated time " + approximatedTime + "s");
            lastPercent = percent;
        }
    }
public static void updatePercentageBar ( double progress , long estimatedTime , int size , int index ) { int percent = ( int ) Math . round ( progress * 100 ) ; if ( Math . abs ( percent - lastPercent ) >= 1 ) { StringBuilder template = new StringBuilder ( "\r[" ) ; for ( int i = 0 ; i < 50 ; i ++ ) { if ( i < percent * .5 ) { template . append ( "=" ) ; } else if ( i == percent * .5 ) { template . append ( ">" ) ; } else { template . append ( " " ) ; } } template . append ( "] %s   " ) ; if ( percent >= 100 ) { template . append ( "%n" ) ; } String approximatedTime = Helper . numberConverterToTime ( ( ( ( double ) estimatedTime / 1000000000.0 ) * ( size + 1 - index ) ) ) ; System . out . printf ( template . toString ( ) , percent + "%  estimated time " + Helper . numberConverterToTime ( ( double ) estimatedTime / 1000000000.0 ) + "s" + " approximated time " + approximatedTime + "s" ) ; lastPercent = percent ; } }
Progress bar which is used to visualize the progress for the command line tool.
Progress bar which is used to visualize the progress for the command line tool .