New caesar rotation version #6

Closed
Mateo wants to merge 5 commits from new_caesar into dev
6 changed files with 201 additions and 30 deletions
Showing only changes of commit 91a2a983c2 - Show all commits

View File

@@ -130,17 +130,14 @@ public class Main {
System.out.println(usersArray.length() + " users found !");
System.out.println("\nDecrypting passwords...\n");
float startTime = System.nanoTime();
if (asynchronous) {
float startTime = System.nanoTime();
Parser.asyncGetPass(usersArray, rotation);
float elapsedTime = (System.nanoTime() - startTime) / 1000000;
System.out.println("Asynchronous elapsed time = " + elapsedTime + "ms");
} else {
float startTime = System.nanoTime();
Parser.getPass(usersArray, rotation);
float elapsedTime = (System.nanoTime() - startTime) / 1000000;
System.out.println("Synchronous elapsed time = " + elapsedTime + "ms");
}
float elapsedTime = (System.nanoTime() - startTime) / 1000000;
System.out.println("Asynchronous elapsed time = " + elapsedTime + "ms");
}