Class Timer
Object
Timer
- All Implemented Interfaces:
Closeable, AutoCloseable
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Same asobserveDuration().doubleRecords the observed duration in seconds since thisTimerinstance was created.
-
Method Details
-
observeDuration
Records the observed duration in seconds since thisTimerinstance was created.- Returns:
- the observed duration in seconds.
-
close
Same asobserveDuration().- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-