| 63 | } |
| 64 | |
| 65 | void StopWatch::resume() |
| 66 | { |
| 67 | if (is_running_) |
| 68 | { |
| 69 | throw Exception::Precondition(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, "StopWatch cannot be resumed if already running!"); |
| 70 | } |
| 71 | |
| 72 | last_start_ = snapShot_(); |
| 73 | is_running_ = true; |
| 74 | } |
| 75 | |
| 76 | void StopWatch::reset() |
| 77 | { |