[ https://issues.apache.org/jira/browse/LANG-1504?focusedWorklogId=374185&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-374185 ]
ASF GitHub Bot logged work on LANG-1504: ---------------------------------------- Author: ASF GitHub Bot Created on: 19/Jan/20 03:40 Start Date: 19/Jan/20 03:40 Worklog Time Spent: 10m Work Description: kinow commented on issue #482: LANG-1504 - Adding steps feature to StopWatch URL: https://github.com/apache/commons-lang/pull/482#issuecomment-575963668 Haven't had time to review this change @topera. But >Note: this is my first try on open source projects, so please sorry if I'm skipping some important step on the process. you are doing great, being patient, and trying to express your point :+1: thanks for that. It would be great if you fixed the conflicting files in this PR. There are two files in conflict, see screenshot: ![image](https://user-images.githubusercontent.com/304786/72674370-63363580-3ada-11ea-8dd2-b324438049ba.png) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 374185) Time Spent: 1h 20m (was: 1h 10m) > StopWatch: steps feature > ------------------------ > > Key: LANG-1504 > URL: https://issues.apache.org/jira/browse/LANG-1504 > Project: Commons Lang > Issue Type: New Feature > Components: lang.time.* > Reporter: Topera > Priority: Major > Time Spent: 1h 20m > Remaining Estimate: 0h > > 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: > {code:java} > 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()); > {code} > The output would be: > {noformat} > [starting] 0ms > [sleeping] 235ms > [walking ] 20ms > [dancing ] 458ms > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)