Stopwatch
for get rid of chore in your code.
Stopwatch stopwatch = new Stopwatch();
stopwatch.start("initialization");
// ...
stopwatch.stop();
stopwatch.start("processing");
// ...
stopwatch.stop();
stopwatch.start("rendering");
// ...
stopwatch.stop();
stopwatch.print();
| name | % | ms | s |
|----------------|-------|---------|--------|
| initialization | 59.5% | 1,234ms | 1.234s |
| processing | 40.0% | 830ms | 0.830s |
| rendering | 0.5% | 10ms | 0.010s |
| | | | |
| total | 100% | 2,074ms | 2.074s |
<dependency>
<groupId>org.silentsoft</groupId>
<artifactId>stopwatch</artifactId>
<version>2.2.1</version>
</dependency>
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please note we have a CODE_OF_CONDUCT, please follow it in all your interactions with the project.
Please refer to LICENSE.