| 112 | } |
| 113 | |
| 114 | void StatsManager::startTimer( float& persistentData ) |
| 115 | { |
| 116 | int addrKey = (int)&persistentData; |
| 117 | |
| 118 | // check if we are already timing this value, if so, then we should throw an error |
| 119 | // XXX: currently we don't allow hierarchical timing |
| 120 | hash_map<int, StopwatchInSeconds>::const_iterator iter = _timers.find(addrKey); |
| 121 | if (iter == _timers.end()) |
| 122 | { |
| 123 | // start the timer otherwise |
| 124 | _timers[addrKey].restart(); |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | void StatsManager::finishTimer( float& persistentData ) |
| 129 | { |
no test coverage detected