public static void main(final String[] args) throws Exception {
                File csvFile = new File(
                        String.format(
                                "benchmark-offsetted-%1$tY%1$tm%1$tdT%1$tH%1$tM%1$tS.csv",
                                System.currentTimeMillis()));
                PrintWriter writer = null;
                try {
                        writer = new PrintWriter(csvFile);
                        System.out
                                .println("# Results will be written into a CSV file: "
                                        + csvFile.getName());
                        System.out.println();
                        BenchmarkOffsettedSeries.run(writer, 8 * 1024, 1280);
                        System.out.println();
                        System.out
                                .println("# Results were written into a CSV file: "
                                        + csvFile.getName());
                } finally {
                        if (writer != null) {
                                writer.close();
                        }
                }
        }
public static void main ( final String [ ] args ) throws Exception { File csvFile = new File ( String . format ( "benchmark-offsetted-%1$tY%1$tm%1$tdT%1$tH%1$tM%1$tS.csv" , System . currentTimeMillis ( ) ) ) ; PrintWriter writer = null ; try { writer = new PrintWriter ( csvFile ) ; System . out . println ( "# Results will be written into a CSV file: " + csvFile . getName ( ) ) ; System . out . println ( ) ; BenchmarkOffsettedSeries . run ( writer , 8 * 1024 , 1280 ) ; System . out . println ( ) ; System . out . println ( "# Results were written into a CSV file: " + csvFile . getName ( ) ) ; } finally { if ( writer != null ) { writer . close ( ) ; } } }
@param args command-line arguments
@throws Exception when some problem occurs