| 189 | } |
| 190 | |
| 191 | void Timer::start( std::string name ) |
| 192 | { |
| 193 | auto parent = currentRecord; |
| 194 | if ( !parent ) |
| 195 | return; |
| 196 | started_ = true; |
| 197 | start_ = high_resolution_clock::now(); |
| 198 | currentRecord = &parent->children[ std::move( name ) ]; |
| 199 | currentRecord->parent = parent; |
| 200 | } |
| 201 | |
| 202 | void Timer::finish() |
| 203 | { |
no outgoing calls
no test coverage detected