MCPcopy Create free account
hub / github.com/akeranen/the-one / getInstance

Method getInstance

core/SimClock.java:25–30  ·  view source on GitHub ↗

Get the instance of the class that can also change the time. @return The instance of this clock

()

Source from the content-addressed store, hash-verified

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)

Callers 11

WorldMethod · 0.95
setUpUsingMethod · 0.95
setUpMethod · 0.95
ConnectionTestClass · 0.95
setUpMethod · 0.95
setUpMethod · 0.95
setUpMethod · 0.95
setUpMethod · 0.95
setUpWithGranularityMethod · 0.95
initModelMethod · 0.95

Calls

no outgoing calls

Tested by 7

setUpUsingMethod · 0.76
setUpMethod · 0.76
setUpMethod · 0.76
setUpMethod · 0.76
setUpMethod · 0.76
setUpMethod · 0.76
setUpWithGranularityMethod · 0.76