ProcessTimer myTimer = new ProcessTimer();
myTimer
.onStart(timer -> System.out.println("Started counting to 10"))
.onStop(timer -> System.out.println("Stopped counting to 10"))
.time(() -> {
int count = 0;
while (count < 10) System.out.println(++count);
});
System.out.println(String.format("Counting to 10 took %d milliseconds.", myTimer.getDuration().toMillis()));
-
Notifications
You must be signed in to change notification settings - Fork 0
⏱️ Time the execution of your code
License
artus/aevum
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
⏱️ Time the execution of your code
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published