|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.utils.Time
public abstract class Time
This interface is the framework for stopping the time of anything.
| Constructor Summary | |
|---|---|
Time()
Creates a new time object and starts the clock. |
|
| Method Summary | |
|---|---|
abstract double |
getElapsedTime()
Returns the elapsed time since invoking the constructor. |
static Time |
getTimeInstance(OutputStream out)
This method tries to return a UserTime instance, if not possible (due to native code) it returns a RealTime instance. |
abstract void |
reset()
Restarts the time stopping. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Time()
| Method Detail |
|---|
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 null
UserTime or RealTime instance
IOException - forwarded from OutputStream.write(byte[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||