diff --git a/.project b/.project index 5972db2..fbbec51 100644 --- a/.project +++ b/.project @@ -14,4 +14,15 @@ org.eclipse.jdt.core.javanature + + + 1631686964620 + + 30 + + org.eclipse.core.resources.regexFilterMatcher + node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ + + + diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs index 3a21537..339daf3 100644 --- a/.settings/org.eclipse.jdt.core.prefs +++ b/.settings/org.eclipse.jdt.core.prefs @@ -7,5 +7,7 @@ org.eclipse.jdt.core.compiler.debug.lineNumber=generate org.eclipse.jdt.core.compiler.debug.localVariable=generate org.eclipse.jdt.core.compiler.debug.sourceFile=generate org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=enabled org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore org.eclipse.jdt.core.compiler.source=1.8 diff --git a/bin/Driver.class b/bin/Driver.class deleted file mode 100644 index 8cd4b27..0000000 Binary files a/bin/Driver.class and /dev/null differ diff --git a/bin/Key.class b/bin/Key.class deleted file mode 100644 index 466bc48..0000000 Binary files a/bin/Key.class and /dev/null differ diff --git a/src/Driver.java b/src/Driver.java index 475a01c..2a50d0a 100644 --- a/src/Driver.java +++ b/src/Driver.java @@ -8,6 +8,8 @@ public class Driver { public static void main(String[] args) { + //start timer + long startTime = System.currentTimeMillis(); //list used to hold key words. ArrayList listOfKeys = new ArrayList(); @@ -75,6 +77,12 @@ public static void main(String[] args) { results are accurate thus proving this implementation of Cichelli's algorithm is effective. */ readOtherFile(textFile, g, hashTable, keyWordCounter, modValue); + + //end timer + long endTime = System.currentTimeMillis(); + //calculate the time it took to run the program. + long timeTaken = endTime - startTime; + System.out.println("Execution time: " + timeTaken + " milliseconds"); }//end of main