| Constructor and Description |
|---|
StopWatch()
Constructs a StopWatch with a start time equal to the system's current nano time.
|
| Modifier and Type | Method and Description |
|---|---|
long |
duration(TimeUnit timeUnit)
Returns the duration of since this instance was created.
|
public StopWatch()
public long duration(TimeUnit timeUnit)
timeUnit.timeUnit - the units in which the duration is returnedCopyright © 2022. All rights reserved.