7 #ifndef NAZARA_CLOCK_HPP 8 #define NAZARA_CLOCK_HPP 10 #include <Nazara/Prerequesites.hpp> 12 #if NAZARA_CORE_THREADSAFE && NAZARA_THREADSAFETY_CLOCK 13 #include <Nazara/Core/ThreadSafety.hpp> 15 #include <Nazara/Core/ThreadSafetyOff.hpp> 23 Clock(UInt64 startingValue = 0,
bool paused =
false);
28 float GetSeconds()
const;
29 UInt64 GetMicroseconds()
const;
30 UInt64 GetMilliseconds()
const;
32 bool IsPaused()
const;
38 Clock& operator=(
const Clock& clock) =
default;
42 NazaraMutexAttrib(m_mutex,
mutable)
49 typedef UInt64 (*ClockFunction)();
51 extern NAZARA_CORE_API ClockFunction GetElapsedMicroseconds;
52 extern NAZARA_CORE_API ClockFunction GetElapsedMilliseconds;
55 #endif // NAZARA_CLOCK_HPP Utility class that measure the elapsed time.
Definition: Clock.hpp:20
TODO: Inherit SoundEmitter from Node.
Definition: Algorithm.hpp:12