| 构造器和说明 |
|---|
SystemClock() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
isNowBefore(long endInMillis)
Tests if a point in time occurs before the
current time. |
long |
laterBy(long durationInMillis)
Computes a point of time in the future.
|
long |
now() |
public long laterBy(long durationInMillis)
ClocklaterBy 在接口中 ClockdurationInMillis - The point in the future, in milliseconds relative to the current time.public boolean isNowBefore(long endInMillis)
Clockcurrent time.isNowBefore 在接口中 ClockendInMillis - The timestamnp to check.public long now()
now 在接口中 ClockSystem.currentTimeMillis()