MCPcopy Create free account
hub / github.com/apache/solr / displayTiming

Method displayTiming

solr/core/src/java/org/apache/solr/cli/PostTool.java:429–433  ·  view source on GitHub ↗

Pretty prints the number of milliseconds taken to post the content to Solr @param millis the time in milliseconds

(long millis)

Source from the content-addressed store, hash-verified

427 * @param millis the time in milliseconds
428 */
429 private void displayTiming(long millis) {
430 SimpleDateFormat df = new SimpleDateFormat("H:mm:ss.SSS", Locale.getDefault());
431 df.setTimeZone(TimeZone.getTimeZone("UTC"));
432 CLIO.out("Time spent: " + df.format(new Date(millis)));
433 }
434
435 private boolean checkIsValidPath(Path srcFile) {
436 return Files.exists(srcFile);

Callers 1

executeMethod · 0.95

Calls 5

outMethod · 0.95
setTimeZoneMethod · 0.80
getDefaultMethod · 0.45
getTimeZoneMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected