Core/Clock: Restart now returns the elapsed time in milliseconds

This commit is contained in:
Jérôme Leclercq
2018-02-07 15:02:44 +01:00
parent b855dcb17e
commit fb3eb9443e
6 changed files with 20 additions and 12 deletions

View File

@@ -107,8 +107,7 @@ namespace Ndk
if (m_shouldQuit)
return false;
m_updateTime = m_updateClock.GetSeconds();
m_updateClock.Restart();
m_updateTime = m_updateClock.Restart() / 1'000'000.f;
for (World& world : m_worlds)
world.Update(m_updateTime);