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

Method withMilliseconds

source/core/StarTime.cpp:178–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178Timer Timer::withMilliseconds(int64_t millis, bool start) {
179 Timer timer;
180 timer.setMilliseconds(-millis);
181 if (start)
182 timer.start();
183 return timer;
184}
185
186Timer::Timer() : Clock(false) {
187 setTime(0.0);

Callers

nothing calls this directly

Calls 2

setMillisecondsMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected