public class DefaultTimingProvider extends java.lang.Object implements TimingProvider
| Constructor and Description |
|---|
DefaultTimingProvider() |
| Modifier and Type | Method and Description |
|---|---|
long |
provideTimestampInMilliseconds()
Provide the current timestamp in milliseconds.
|
void |
sleep(long milliseconds)
Sleep given amount of milliseconds.
|
public long provideTimestampInMilliseconds()
TimingProviderprovideTimestampInMilliseconds in interface TimingProviderpublic void sleep(long milliseconds)
throws java.lang.InterruptedException
TimingProvidersleep in interface TimingProviderjava.lang.InterruptedException - When the sleep call gets interrupted.