Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aevum

Time code execution

Build Status

Example

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()));

About

⏱️ Time the execution of your code

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages