Package com.yahoo.concurrent
Interface Timer
-
- All Known Implementing Classes:
SystemTimer
public interface Timer
This interface wraps access to some timer that can be used to measure elapsed time, in milliseconds. This abstraction allows for unit testing the behavior of time-based constructs.- Author:
- Simon Thoresen Hult
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
milliTime()
Returns the current value of some arbitrary timer, in milliseconds.
-