MCPcopy Create free account
hub / github.com/DFHack/dfhack / reset

Method reset

library/Core.cpp:169–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167};
168
169void PerfCounters::reset(bool ignorePauseState) {
170 *this = {};
171 ignore_pause_state = ignorePauseState;
172 baseline_elapsed_ms = Core::getInstance().p->getTickCount();
173}
174
175void PerfCounters::incCounter(uint32_t &counter, uint32_t baseline_ms) {
176 if (!ignore_pause_state && (!World::isFortressMode() || World::ReadPauseState()))

Callers 6

InitMainThreadMethod · 0.45
onStateChangeMethod · 0.45
ShutdownMethod · 0.45
threadFnMethod · 0.45
resetPerfCountersFunction · 0.45
internal_runCommandFunction · 0.45

Calls 1

getTickCountMethod · 0.80

Tested by

no test coverage detected