Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .project
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,15 @@
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<filteredResources>
<filter>
<id>1631686964620</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>
2 changes: 2 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Binary file removed bin/Driver.class
Binary file not shown.
Binary file removed bin/Key.class
Binary file not shown.
8 changes: 8 additions & 0 deletions src/Driver.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<Key> listOfKeys = new ArrayList<Key>();
Expand Down Expand Up @@ -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

Expand Down