mirror of
https://github.com/libretro/pcsx2.git
synced 2024-12-25 11:16:26 +00:00
gsdx:linux: Use clock_gettime instead of ftime
ftime is obsolete and not present in recent POSIX specifications.
This commit is contained in:
parent
da2046e90e
commit
57cdf0bf16
@ -1499,16 +1499,13 @@ EXPORT_C GSBenchmark(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow
|
||||
|
||||
#ifdef __linux__
|
||||
|
||||
#include <sys/time.h>
|
||||
#include <sys/timeb.h> // ftime(), struct timeb
|
||||
#include "GSLzma.h"
|
||||
|
||||
inline unsigned long timeGetTime()
|
||||
{
|
||||
timeb t;
|
||||
ftime(&t);
|
||||
|
||||
return (unsigned long)(t.time*1000 + t.millitm);
|
||||
struct timespec t;
|
||||
clock_gettime(CLOCK_REALTIME, &t);
|
||||
return (unsigned long)(t.tv_sec*1000 + t.tv_nsec/1000000);
|
||||
}
|
||||
|
||||
// Note
|
||||
|
Loading…
Reference in New Issue
Block a user