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

Method setTime

source/core/StarTime.cpp:136–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void Clock::setTime(double time) {
137 RecursiveMutexLocker locker(m_mutex);
138 updateElapsed();
139 m_elapsedTicks = Time::secondsToTicks(time, Time::monotonicTickFrequency());
140}
141
142void Clock::setMilliseconds(int64_t millis) {
143 RecursiveMutexLocker locker(m_mutex);

Callers 4

handlePacketsMethod · 0.45
loadSettingsMethod · 0.45
shipWorldPromiseMethod · 0.45
withTimeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected