Class Info |
|---|
public class Time 时间。 |
Qualifier and Type | Method Name and Description |
|---|---|
long | 获取时间(毫秒)。 |
long | 获取时间(纳秒)。 |
long | 获取时间(秒)。 |
Constructor |
|---|
public Time(long nanoseconds) 构造方法,使用纳秒初始化。 |
Parameters
Name | Description |
|---|---|
nanoseconds | 时间值(纳秒)。 |
Constructor |
|---|
public long getTimeMillis() 获取时间(毫秒)。 |
Returns
Type | Description |
|---|---|
long | 时间值(毫秒)。 |