mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
devide by the time_freq
This commit is contained in:
parent
c6a9aadbb0
commit
72c38bca0c
|
@ -1011,9 +1011,9 @@ int64 time_freq()
|
||||||
int64 time_get_microseconds()
|
int64 time_get_microseconds()
|
||||||
{
|
{
|
||||||
#if defined(CONF_PLATFORM_MACOSX)
|
#if defined(CONF_PLATFORM_MACOSX)
|
||||||
return time_get_impl() / (int64)1000;
|
return time_get_impl() / (time_freq() / 1000 / 1000 / 1000);
|
||||||
#elif defined(CONF_FAMILY_UNIX)
|
#elif defined(CONF_FAMILY_UNIX)
|
||||||
return time_get_impl();
|
return time_get_impl() / (time_freq() / 1000 / 1000);
|
||||||
#elif defined(CONF_FAMILY_WINDOWS)
|
#elif defined(CONF_FAMILY_WINDOWS)
|
||||||
return (time_get_impl() * (int64)1000000) / time_freq();
|
return (time_get_impl() * (int64)1000000) / time_freq();
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue