| 200 | } |
| 201 | |
| 202 | void Timer::finish() |
| 203 | { |
| 204 | if ( !started_ ) |
| 205 | return; |
| 206 | started_ = false; |
| 207 | auto currentParent = currentRecord->parent; |
| 208 | if ( !currentParent ) |
| 209 | return; |
| 210 | |
| 211 | currentRecord->time += high_resolution_clock::now() - start_; |
| 212 | ++currentRecord->count; |
| 213 | |
| 214 | currentRecord = currentParent; |
| 215 | } |
| 216 | |
| 217 | } //namespace MR |
no outgoing calls
no test coverage detected