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
AuditDurations. 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.Timerstart()Start timing a duration.stop()Halt theComponents.Timerand return andAuditDuration.
-
Method Details
-
stop
Halt theComponents.Timerand return andAuditDuration.- Returns:
- an
AuditDurationthat holds the timed interval details.
-
start
Start timing a duration.- Returns:
- a new Timer instance with start time set.
-