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

Method adjustTime

source/core/StarTime.cpp:148–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148void Clock::adjustTime(double timeAdjustment) {
149 RecursiveMutexLocker locker(m_mutex);
150 setTime(max<double>(0.0, time() + timeAdjustment));
151}
152
153void Clock::adjustMilliseconds(int64_t millisAdjustment) {
154 RecursiveMutexLocker locker(m_mutex);

Callers 1

timewarpMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected