MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / Reset

Method Reset

src/framerate_gui.cpp:332–335  ·  view source on GitHub ↗

* Store the previous accumulator value and reset for a new cycle of accumulating measurements. * @note This function must be called once per frame, otherwise measurements are not collected. * @param elem The element to begin a new measurement cycle of */

Source from the content-addressed store, hash-verified

330 * @param elem The element to begin a new measurement cycle of
331 */
332void PerformanceAccumulator::Reset(PerformanceElement elem)
333{
334 _pf_data[elem].BeginAccumulate(GetPerformanceTimer());
335}
336
337
338void ShowFrametimeGraphWindow(PerformanceElement elem);

Callers

nothing calls this directly

Calls 2

GetPerformanceTimerFunction · 0.85
BeginAccumulateMethod · 0.80

Tested by

no test coverage detected