diff --git a/AlgebraicDataflowArchitectureModel/src/experiment/PullExpriment.java b/AlgebraicDataflowArchitectureModel/src/experiment/PullExpriment.java index 44f1aab..a49d700 100644 --- a/AlgebraicDataflowArchitectureModel/src/experiment/PullExpriment.java +++ b/AlgebraicDataflowArchitectureModel/src/experiment/PullExpriment.java @@ -12,9 +12,10 @@ long startTime = System.nanoTime(); main.purchase(100); long endTime = System.nanoTime(); + main.getHistory().clear(); times += endTime - startTime; } - System.out.println("purchase:" + times / num); + System.out.println("purchase:" + (double)times / num); times = (long) 0; for(int i = 0;i