org.omnaest.utils.time
Class DurationCaptureRunnableDecorator
java.lang.Object
org.omnaest.utils.time.DurationCaptureRunnableDecorator
- All Implemented Interfaces:
- Runnable
public class DurationCaptureRunnableDecorator
- extends Object
- implements Runnable
Runnable decorator which captures the duration of the Runnable.run() method
- Author:
- Omnaest
- See Also:
getDurationCapture()
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
durationCapture
protected DurationCapture durationCapture
runnable
protected Runnable runnable
DurationCaptureRunnableDecorator
public DurationCaptureRunnableDecorator(Runnable runnable)
run
public void run()
- Specified by:
run in interface Runnable
getDurationInMilliseconds
public long getDurationInMilliseconds()
getDurationCapture
public DurationCapture getDurationCapture()
Copyright © 2013. All Rights Reserved.