Work around the lack of clock() on PS Vita
This commit is contained in:
parent
25367efcba
commit
0a93ac1294
2 changed files with 2 additions and 2 deletions
|
@ -349,7 +349,7 @@ static void SDLTest_LogTestSuiteSummary(SDLTest_TestSuiteReference *testSuites)
|
|||
/* Gets a timer value in seconds */
|
||||
static float GetClock()
|
||||
{
|
||||
float currentClock = clock() / (float) CLOCKS_PER_SEC;
|
||||
float currentClock = SDL_GetPerformanceCounter() / (float) SDL_GetPerformanceFrequency();
|
||||
return currentClock;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue