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

@@ -32,7 +32,7 @@ namespace Nz
bool IsPaused() const;
void Pause();
void Restart();
UInt64 Restart();
void Unpause();
Clock& operator=(const Clock& clock) = default;
@@ -46,7 +46,7 @@ namespace Nz
bool m_paused;
};
typedef UInt64 (*ClockFunction)();
using ClockFunction = UInt64 (*)();
extern NAZARA_CORE_API ClockFunction GetElapsedMicroseconds;
extern NAZARA_CORE_API ClockFunction GetElapsedMilliseconds;