| 91 | } |
| 92 | |
| 93 | TCpuInstant InstantToCpuInstant(TInstant instant) |
| 94 | { |
| 95 | // See above. |
| 96 | auto state = GetCalibrationState(); |
| 97 | return instant >= state.Instant |
| 98 | ? state.CpuInstant + DurationToCpuDuration(instant - state.Instant, GetMicrosecondsToTicks()) |
| 99 | : state.CpuInstant - DurationToCpuDuration(state.Instant - instant, GetMicrosecondsToTicks()); |
| 100 | } |
| 101 | |
| 102 | //////////////////////////////////////////////////////////////////////////////// |
| 103 |
nothing calls this directly
no test coverage detected