Package org.apache.http.impl.client
Interface Clock
- All Known Implementing Classes:
SystemClock
interface Clock
Interface used to enable easier testing of time-related behavior.
- Since:
- 4.2
-
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the current time, expressed as the number of milliseconds since the epoch.
-
Method Details
-
getCurrentTime
long getCurrentTime()Returns the current time, expressed as the number of milliseconds since the epoch.- Returns:
- current time
-