| Constructor and Description |
|---|
Time()
Creates a new time object and starts the clock.
|
| Modifier and Type | Method and Description |
|---|---|
abstract double |
getElapsedTime()
Returns the elapsed time since invoking the constructor.
|
static Time |
getTimeInstance(OutputStream out)
|
abstract void |
reset()
Restarts the time stopping.
|
public abstract double getElapsedTime()
public abstract void reset()
public static Time getTimeInstance(OutputStream out) throws IOException
UserTime instance, if not possible (due to native code) it returns a RealTime instance.out - a stream that allows to write a warning if a RealTime instance is returned; can be nullUserTime or RealTime instanceIOException - forwarded from OutputStream.write(byte[])