public final class RelativeTime extends Object implements ITimeProvider
timeMillis()
method. To measure time accurately, this method uses java.sun.Perf
(since JDK1.4.2). The resolution of the timer is machine dependent. Limitations:
Constructor and Description |
---|
RelativeTime()
Returns a RelativeTime instance based on sun.misc.Perf precision.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isRelative() |
long |
timeMillis()
Returns the current value of the most precise available system timer, in milliseconds.
|
public RelativeTime()
RuntimeException
- if failed to access to sun.misc.perfpublic long timeMillis()
timeMillis
in interface ITimeProvider
public boolean isRelative()
isRelative
in interface ITimeProvider
Copyright © GigaSpaces.