You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Daniel Dowd (JIRA)" <ji...@apache.org> on 2018/03/17 09:38:00 UTC
[jira] [Commented] (LANG-1359) add getStopTime to StopWatch
[ https://issues.apache.org/jira/browse/LANG-1359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16403336#comment-16403336 ]
Daniel Dowd commented on LANG-1359:
-----------------------------------
[~keegan]
I think this feature is already implemented in StopWatch. In the documentation of the getTime function it states the following.
/**
* <p>
* Get the time on the stopwatch.
* </p>
*
* <p>
* This is either the time between the start and the moment this method is called, or the amount of time between
* start and stop.
* </p>
*
* @return the time in milliseconds
*/
> add getStopTime to StopWatch
> ----------------------------
>
> Key: LANG-1359
> URL: https://issues.apache.org/jira/browse/LANG-1359
> Project: Commons Lang
> Issue Type: Improvement
> Components: lang.time.*
> Reporter: Keegan Witt
> Priority: Minor
>
> Someone I know recently had a use case where they needed to retrieve the stopTime for a timer. I know this could be inferred from
> {code:java}
> stopWatch.getStartTime() + stopWatch.getTime();
> {code}
> but it might be nice to just add a getter.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)