Skip to content

Commit

Permalink
show completion time
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 1, 2024
1 parent 0109f5f commit f11d2b7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions eo-runtime/src/main/java/org/eolang/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,14 @@ private static void run(final List<String> opts) throws Exception {
}
app.put(0, args);
}
final long start = System.currentTimeMillis();
final byte[] ret = new Dataized(app).take();
Main.LOGGER.info(
String.format(
"%n---%n%s",
new VerboseBytesAsString(new Dataized(app).take()).get()
"%n---%n%s%nFinished in %.2fms (%d bytes)",
new VerboseBytesAsString(ret).get(),
System.currentTimeMillis() - start / 1000.0,
ret.length
)
);
}
Expand Down

0 comments on commit f11d2b7

Please sign in to comment.