MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ~PerformanceAccumulator

Method ~PerformanceAccumulator

src/framerate_gui.cpp:322–325  ·  view source on GitHub ↗

Finish and add one block of the accumulating value. */

Source from the content-addressed store, hash-verified

320
321/** Finish and add one block of the accumulating value. */
322PerformanceAccumulator::~PerformanceAccumulator()
323{
324 _pf_data[this->elem].AddAccumulate(GetPerformanceTimer() - this->start_time);
325}
326
327/**
328 * Store the previous accumulator value and reset for a new cycle of accumulating measurements.

Callers

nothing calls this directly

Calls 2

GetPerformanceTimerFunction · 0.85
AddAccumulateMethod · 0.80

Tested by

no test coverage detected