MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / withTime

Method withTime

source/core/StarTime.cpp:170–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170Timer Timer::withTime(double timeLeft, bool start) {
171 Timer timer;
172 timer.setTime(-timeLeft);
173 if (start)
174 timer.start();
175 return timer;
176}
177
178Timer Timer::withMilliseconds(int64_t millis, bool start) {
179 Timer timer;

Callers

nothing calls this directly

Calls 2

setTimeMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected