Package me.ahoo.cosid.util
Interface Clock
- All Known Implementing Classes:
Clock.CacheClock
,Clock.SystemClock
@ThreadSafe
public interface Clock
System.currentTimeMillis()
is too slow.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Fix the problem thatSystem.currentTimeMillis()
is too slow.static class
-
Field Summary
-
Method Summary
-
Field Details
-
CACHE
-
SYSTEM
-
-
Method Details
-
secondTime
long secondTime() -
getSystemSecondTime
static long getSystemSecondTime()
-