public static class ClockUtil.DefaultClock extends Object implements ClockUtil.Clock
| Constructor and Description |
|---|
ClockUtil.DefaultClock() |
| Modifier and Type | Method and Description |
|---|---|
Date |
currentDate()
系统当前时间
|
long |
currentTimeMillis()
系统当前时间戳
|
long |
nanoTime()
操作系统启动到现在的纳秒数,与系统时间是完全独立的两个时间体系
|
public Date currentDate()
ClockUtil.ClockcurrentDate in interface ClockUtil.Clockpublic long currentTimeMillis()
ClockUtil.ClockcurrentTimeMillis in interface ClockUtil.Clockpublic long nanoTime()
ClockUtil.ClocknanoTime in interface ClockUtil.ClockCopyright © 2018. All rights reserved.