Random random = new Random(); // Test main ProgressReport testReport = new ProgressReport(); testReport.markTime("startTime"); int oresMined = 0; String plotName = "Progress Report - Ruleblader2 - Ores Mined"; testReport.createXYPlot(plotName); testReport.addMarkToPlot(plotName, testReport.getMillisElapsedSince("startTime"), oresMined); for (int i = 0; i < 10; i++) { try { Thread.sleep(1000); } catch (InterruptedException e) { // } oresMined += 5 + random.nextInt(10); testReport.addMarkToPlot(plotName, testReport.getMillisElapsedSince("startTime"), oresMined); }