edelgadoh commented on code in PR #1473:
URL: https://github.com/apache/commons-lang/pull/1473#discussion_r2464117432


##########
src/main/java/org/apache/commons/lang3/time/StopWatch.java:
##########
@@ -626,6 +633,59 @@ public void split() {
         splitState = SplitState.SPLIT;
     }
 
+    /**
+     * <p>
+     * Splits the time to track the elapsed time between two consecutive 
{@code split()} calls.
+     * The label specified is used to identify each split
+     * </p>
+     *
+     * <p>
+     * After calling {@link #stop()}, we can call {@link #getReport()} to have 
a report with all time between each {@code split()} call, example:
+     * </p>
+     *
+     * <pre>
+     * 1 00:14:00.000
+     * 2 00:02:00.000
+     * 3 00:04:00.000
+     * </pre>
+     *
+     * @param label A number to identify this split
+     *
+     * @throws IllegalStateException
+     *             if the StopWatch is not running.
+     */
+    public void split(int label) {

Review Comment:
   yeah, I removed that method that received int label, and yeah this new code 
is not related to the current `split()` method, I refactored / renamed this to 
`public void recordSplit(final String label) `, just to let it more expresive 
and diferenciate with the current `split` method



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to