mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-11 19:58:49 -05:00
Refactor DurationModifier to enable testing
This commit is contained in:
@@ -101,7 +101,7 @@ double Duration::TimeRemaining() const
|
||||
|
||||
void Duration::SetTimeRemaining(double remaining)
|
||||
{
|
||||
long long msPassed = (Seconds() - remaining) * 1000;
|
||||
long long msPassed = (long long)((Seconds() - remaining) * 1000);
|
||||
_startTime = std::chrono::high_resolution_clock::now() -
|
||||
std::chrono::milliseconds(msPassed);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user