Added high resolution timing API: SDL_GetPerformanceCounter(), SDL_GetPerformanceFrequency()

This commit is contained in:
Sam Lantinga 2011-03-25 14:45:04 -07:00
parent 98e5ddb37d
commit 85ad17e7d6
8 changed files with 127 additions and 1 deletions

View file

@ -47,6 +47,16 @@ extern "C" {
*/
extern DECLSPEC Uint32 SDLCALL SDL_GetTicks(void);
/**
* \brief Get the current value of the high resolution counter
*/
extern DECLSPEC Uint64 SDLCALL SDL_GetPerformanceCounter(void);
/**
* \brief Get the count per second of the high resolution counter
*/
extern DECLSPEC Uint64 SDLCALL SDL_GetPerformanceFrequency(void);
/**
* \brief Wait a specified number of milliseconds before returning.
*/