* Begin a cycle of a measured element. * @param elem The element to be measured */
| 245 | * @param elem The element to be measured |
| 246 | */ |
| 247 | PerformanceMeasurer::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. */ |
| 256 | PerformanceMeasurer::~PerformanceMeasurer() |
nothing calls this directly
no test coverage detected