Package com.vmware.aria.operations
Class Timer
-
-
Field Summary
Fields Modifier and Type Field Description private final String
name
-
Constructor Summary
Constructors Constructor Description Timer(String name)
-
Method Summary
Modifier and Type Method Description final String
getName()
A name to identify the timer. final Unit
stop()
Stops the timer. final Long
getDuration()
Gets the duration of the timer in milliseconds String
toString()
-
-
Method Detail
-
getName
final String getName()
A name to identify the timer.
-
stop
final Unit stop()
Stops the timer. Once stopped, a timer cannot be restarted.
-
getDuration
final Long getDuration()
Gets the duration of the timer in milliseconds
-
toString
String toString()
- Returns:
The timer's name and duration. If the timer has not been stopped, the duration will read as 'Infinity'
-
-
-
-