Stop the Timer.
| 67 | |
| 68 | // Stop the Timer. |
| 69 | T stop() |
| 70 | { |
| 71 | const Time stop = Clock::now(); |
| 72 | |
| 73 | T t(0); |
| 74 | |
| 75 | double value = 0.0; |
| 76 | |
| 77 | synchronized (data->lock) { |
| 78 | t = T(stop - data->start); |
| 79 | |
| 80 | data->lastValue = t.value(); |
| 81 | |
| 82 | value = data->lastValue.get(); |
| 83 | } |
| 84 | |
| 85 | push(value); |
| 86 | |
| 87 | return t; |
| 88 | } |
| 89 | |
| 90 | // Time an asynchronous event. |
| 91 | template <typename U> |
nothing calls this directly
no test coverage detected