Skip to content

Commit

Permalink
#69 show available CPUs
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Nov 2, 2024
1 parent 342061a commit 5a64298
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/test/java/org/eolang/hone/OptimizeMojoTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,14 @@ void optimizesJustOneLargeJnaClass(@Mktmp final Path dir,
"target/generated-sources/phi/com/sun/jna/Pointer.phi"
).path().toFile().length()
),
Logger.format("Optimization time: %[ms]s (%d ms)", msec, msec)
Logger.format(
"Optimization time: %[ms]s (%d ms)",
msec, msec
),
Logger.format(
"Available CPUs: %d",
Runtime.getRuntime().availableProcessors()
)
).getBytes()
);
}
Expand Down

0 comments on commit 5a64298

Please sign in to comment.