Get the instance of the class that can also change the time. @return The instance of this clock
()
| 23 | * @return The instance of this clock |
| 24 | */ |
| 25 | public static SimClock getInstance() { |
| 26 | if (clock == null) { |
| 27 | clock = new SimClock(); |
| 28 | } |
| 29 | return clock; |
| 30 | } |
| 31 | |
| 32 | /** |
| 33 | * Returns the current time (seconds since start) |
no outgoing calls