Esben Skovenborg avatar Esben Skovenborg committed 8f5155e

Added number-of-hg-calls to the elapsed-time message. Updated Jar-file.

Comments (0)

Files changed (2)

Add a comment to this file

hg_timestamp_update.jar

Binary file modified.

src/hg_timestamp.java

 		}
 
 		long startTime = System.currentTimeMillis();
+		int hg_calls = 1;
 
 		String hg_command[] = {
 			"hg", "log",
 					if ((dateString != null) && (dateString.length() > 0)) {
 						date = sdf.parse(dateString);
 					}
+					hg_calls++;
 				}
 				
 				if (date != null) {
 		
 		if (verbose >= 2) {
 			float elapsedTime = (System.currentTimeMillis() - startTime) / 1000F;
-			System.out.println("Elapsed time in hg_timestamp.main(): " + Float.toString(elapsedTime) + " seconds.");
+			System.out.printf("Elapsed time in hg_timestamp.main(): %.3f seconds; %d call(s) to hg.\n", elapsedTime, hg_calls);
 		}
 
 	}  // main
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.