public class SystemTimeProvider extends Object implements TimeProvider
Constructor and Description |
---|
SystemTimeProvider() |
Modifier and Type | Method and Description |
---|---|
long |
currentTimeMillis()
Returns current wall-clock time, equivalent to
System.currentTimeMillis() . |
long |
nanoTime()
Returns time with nanosecond resolution, equivalent to
System.nanoTime() . |
public long currentTimeMillis()
TimeProvider
System.currentTimeMillis()
.currentTimeMillis
in interface TimeProvider
public long nanoTime()
TimeProvider
System.nanoTime()
.nanoTime
in interface TimeProvider
Copyright © 2002-2022 Atlassian. All Rights Reserved.