Rewrote the implementation of sf::Clock, it now ensures microseconds resolution and monotonicity
This commit is contained in:
parent
5b2648fd8b
commit
3e89dd652f
12 changed files with 505 additions and 344 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue