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

Method incCounter

library/Core.cpp:175–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175void PerfCounters::incCounter(uint32_t &counter, uint32_t baseline_ms) {
176 if (!ignore_pause_state && (!World::isFortressMode() || World::ReadPauseState()))
177 return;
178 counter += Core::getInstance().p->getTickCount() - baseline_ms;
179}
180
181bool PerfCounters::getIgnorePauseState() {
182 return ignore_pause_state;

Callers 11

UpdateMethod · 0.80
onUpdateMethod · 0.80
DFH_SDL_EventMethod · 0.80
recordRepeatRuntimeFunction · 0.80
recordZScreenRuntimeFunction · 0.80
OnUpdateMethod · 0.80
OnStateChangeMethod · 0.80
run_handlerFunction · 0.80
manageEventsMethod · 0.80
overlay_interpose_luaFunction · 0.80
record_widget_runtimeFunction · 0.80

Calls 1

getTickCountMethod · 0.80

Tested by

no test coverage detected