Pretty prints the number of milliseconds taken to post the content to Solr @param millis the time in milliseconds
(long millis)
| 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); |
no test coverage detected