| 84 | } |
| 85 | |
| 86 | void Time::TickData::OnReset(float targetFps, double currentTime) |
| 87 | { |
| 88 | DeltaTime = UnscaledDeltaTime = targetFps > ZeroTolerance ? TimeSpan::FromSeconds(1.0f / targetFps) : TimeSpan::Zero(); |
| 89 | LastLength = static_cast<double>(DeltaTime.Ticks) / TimeSpan::TicksPerSecond; |
| 90 | LastBegin = currentTime - LastLength; |
| 91 | LastEnd = currentTime; |
| 92 | } |
| 93 | |
| 94 | bool Time::TickData::OnTickBegin(double time, float targetFps, float maxDeltaTime) |
| 95 | { |
no outgoing calls
no test coverage detected