Package me.ahoo.cosid.util
Interface Clock
- All Known Implementing Classes:
Clock.CacheClock
,Clock.SystemClock
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
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
-
SYSTEM
-
CACHE
-
-
Method Details
-
secondTime
long secondTime() -
getSystemSecondTime
static long getSystemSecondTime()
-