Package org.openstreetmap.josm.tools
Class Stopwatch
java.lang.Object
org.openstreetmap.josm.tools.Stopwatch
Measures elapsed time in milliseconds
- Since:
- 15755
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
start
-
-
Constructor Details
-
Stopwatch
-
-
Method Details
-
createStarted
Creates and starts a stopwatch- Returns:
- the started stopwatch
-
elapsed
Returns the elapsed milliseconds- Returns:
- the elapsed milliseconds
-
toString
Formats the duration since start as string -
toString
Formats the given task name and duration since start as i18n string- Parameters:
taskName- the task name- Returns:
- the task name and duration since start as i18n string
-