Skip to content

artus/aevum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

Releases

No releases published

Packages

No packages published

Languages