file = inputfile.toLocalString();\r
}\r
\r
- LinkedList todoList = new LinkedList();\r
+ LinkedList todoList = new LinkedList();\r
fillTodoList(file, todoList);\r
\r
+ long st = System.currentTimeMillis();\r
+ long fi;\r
+\r
while (!todoList.isEmpty()) {\r
t = (Transaction)(todoList.removeFirst());\r
\r
}\r
}\r
\r
+ fi = System.currentTimeMillis();\r
+\r
sleep(3000000);\r
atomic {\r
output();\r
\r
RecoveryStat.printRecoveryStat();\r
\r
-\r
- System.out.println("\n\n\n I'm done\n\n\n");\r
+ System.out.println("\n\n\n I'm done - Time Elapse : "+ ((double)(fi-st)/1000) + "\n\n\n");\r
\r
while(true) {\r
sleep(100000);\r
Random rand = new Random(thid);
int i;
+ long st = System.currentTimeMillis();
+ long fi;
+
for(i=0; i<niter; i++) {
correct =0;
wrong = 0;
// System.out.println((i+1)+"th iteration correct = " + correct + " Wrong = " + wrong + " percentage = " + ((float)correct/(float)nemails));
}//end num iter
// Sanity check
+ fi = System.currentTimeMillis();
+
System.out.println((i)+"th iteration correct = " + correct + " Wrong = " + wrong + " percentage = " + ((float)correct/(float)nemails));
- System.out.println("\n\n\n I'm Done\n\n\n");
+ System.out.println("\n\n\n I'm Done - Time Elapse : " + (double)((fi-st)/1000) +"\n\n\n");
RecoveryStat.printRecoveryStat();