public static void main(String[] args) throws Exception {
long startTimeTotal = System.currentTimeMillis();
processArgs(args);
<<<<<<< HEAD
for (Book book : books) {
long startTime = System.currentTimeMillis();
new Downloader(downloadDir, book).download();
SimpleLogger.echo("Processing " + book.unpackDirectory + "...");
for (File htmlFile : new File(downloadDir, book.unpackDirectory).listFiles(HTML_FILES))
cleanHTMLFile(htmlFile);
SimpleLogger.time("Duration for " + book.unpackDirectory, System.currentTimeMillis() - startTime);
=======
for (Book book : Options.VALUES.books) {
System.out.println(book);
long startTimeBook = System.currentTimeMillis();
new Downloader(Options.VALUES.downloadDir, book).download();
cleanBook(book);
SimpleLogger.time("Duration for " + book.unpackDirectory, System.currentTimeMillis() - startTimeBook);
>>>>>>> 5ce34aa2f03bb706ebaacd0496248afed60454bd
}
SimpleLogger.time("\nTotal duration", System.currentTimeMillis() - startTimeTotal);
} |