|
GeoSoft API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--Timer
Class for program event timing. Usage:
Timer timer = new Timer(); // do stuff System.out.println (timer); // prints time elapsed since // object was created.
Constructor Summary | |
Timer()
Start timer. |
Method Summary | |
long |
getTime()
Returns exact number of milliseconds since timer was started. |
static void |
main(String[] args)
Testing this class. |
void |
reset()
Restarts the timer. |
String |
toString()
Returns a formatted string showing the elaspsed time suince the instance was created. |
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Timer()
Method Detail |
public long getTime()
public void reset()
public String toString()
toString
in class Object
public static void main(String[] args)
args
- Not used.
|
GeoSoft API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |