Package org.verapdf.component
Class Components.Timer
- java.lang.Object
-
- org.verapdf.component.Components.Timer
-
- Enclosing class:
- Components
public static class Components.Timer extends Object
Convenience factory class to facilitate the creation ofAuditDuration
s. Create a newComponents.Timer
instance using thestart
method, then halt theComponents.Timer
with thestop()
method which returns anAuditDuration
instance.- Version:
- 0.1
- Author:
- Carl Wilson carlwilson AT github
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Components.Timer
start()
Start timing a duration.AuditDuration
stop()
Halt theComponents.Timer
and return andAuditDuration
.
-
-
-
Method Detail
-
stop
public AuditDuration stop()
Halt theComponents.Timer
and return andAuditDuration
.- Returns:
- an
AuditDuration
that holds the timed interval details.
-
start
public static Components.Timer start()
Start timing a duration.- Returns:
- a new Timer instance with start time set.
-
-