提交 cec5d064 编写于 作者: Z Zhang Rui

ijksdl: fix timer

上级 1d5df64d
......@@ -45,6 +45,6 @@ Uint64 SDL_GetTickHR(void)
Uint64 clock;
struct timespec now;
clock_gettime(CLOCK_MONOTONIC_HR, &now);
clock = now.tv_sec * 1000 + now.tv_nsec * 1000000;
clock = now.tv_sec * 1000 + now.tv_nsec / 1000000;
return (clock);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册