| 101 | } |
| 102 | |
| 103 | void Duration::SetTimeRemaining(double remaining) |
| 104 | { |
| 105 | long long msPassed = (long long)((Seconds() - remaining) * 1000); |
| 106 | _startTime = std::chrono::high_resolution_clock::now() - |
| 107 | std::chrono::milliseconds(msPassed); |
| 108 | } |
| 109 | |
| 110 | void Duration::Reset() |
| 111 | { |
no test coverage detected