|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.simulation.time.UpTimer
public class UpTimer
The UpTimer class keeps track of how long an instance of the simulation has been running in real time.
| Constructor Summary | |
|---|---|
UpTimer()
|
|
| Method Summary | |
|---|---|
void |
addTime(long period)
This method adds a period of time to the running time of the simulation. |
java.lang.String |
getUptime()
Determines the amount of time the simulation has been running. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UpTimer()
| Method Detail |
|---|
public void addTime(long period)
period - Extra time the simulation is running. (milliseconds)public java.lang.String getUptime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||