Rewrote the implementation of sf::Clock, it now ensures microseconds resolution and monotonicity

This commit is contained in:
Laurent Gomila 2011-12-20 18:47:33 +01:00
parent 5b2648fd8b
commit 3e89dd652f
12 changed files with 505 additions and 344 deletions

View file

@ -62,7 +62,7 @@ public :
Uint32 GetElapsedTime() const;
////////////////////////////////////////////////////////////
/// \brief Restart the timer
/// \brief Restart the clock
///
/// This function puts the time counter back to zero.
///
@ -74,7 +74,7 @@ private :
////////////////////////////////////////////////////////////
// Member data
////////////////////////////////////////////////////////////
Uint64 myStartTime; ///< Time of last reset
Uint64 myStartTime; ///< Time of last reset, in nanoseconds
};
} // namespace sf