Package org.verapdf.component
Class Components.Timer
java.lang.Object
org.verapdf.component.Components.Timer
- Enclosing class:
- Components
Convenience factory class to facilitate the creation of
AuditDuration
s. Create a new Components.Timer
instance using the
start
method, then halt the Components.Timer
with the
stop()
method which returns an AuditDuration
instance.- Version:
- 0.1
- Author:
- Carl Wilson carlwilson AT github
-
Method Summary
Modifier and TypeMethodDescriptionstatic Components.Timer
start()
Start timing a duration.stop()
Halt theComponents.Timer
and return andAuditDuration
.
-
Method Details
-
stop
Halt theComponents.Timer
and return andAuditDuration
.- Returns:
- an
AuditDuration
that holds the timed interval details.
-
start
Start timing a duration.- Returns:
- a new Timer instance with start time set.
-