| 37 | } |
| 38 | |
| 39 | void StopWatch::start() |
| 40 | { |
| 41 | if (is_running_) |
| 42 | { |
| 43 | throw Exception::Precondition(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, "StopWatch is already started!"); |
| 44 | } |
| 45 | |
| 46 | clear(); |
| 47 | last_start_ = snapShot_(); |
| 48 | is_running_ = true; |
| 49 | } |
| 50 | |
| 51 | void StopWatch::stop() |
| 52 | { |