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

Method PerformanceMeasurer

src/framerate_gui.cpp:247–253  ·  view source on GitHub ↗

* Begin a cycle of a measured element. * @param elem The element to be measured */

Source from the content-addressed store, hash-verified

245 * @param elem The element to be measured
246 */
247PerformanceMeasurer::PerformanceMeasurer(PerformanceElement elem)
248{
249 assert(elem < PFE_MAX);
250
251 this->elem = elem;
252 this->start_time = GetPerformanceTimer();
253}
254
255/** Finish a cycle of a measured element and store the measurement taken. */
256PerformanceMeasurer::~PerformanceMeasurer()

Callers

nothing calls this directly

Calls 1

GetPerformanceTimerFunction · 0.85

Tested by

no test coverage detected