Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Would be great if we could use StopWatch to track times on many places of our code.
I created a new feature called "steps".
With this feature we can add label to each step and then get a report with time between each step.
Example:
final StopWatch watch = new StopWatch(); watch.step("starting"); exampleGoSleep(); watch.step("sleeping"); exampleGoWalk(); watch.step("walking "); exampleGoDance(); watch.step("dancing "); System.out.println(watch.getStepsReport());
The output would be:
[starting] 0ms [sleeping] 235ms [walking ] 20ms [dancing ] 458ms
Attachments
Issue Links
- links to