devide by the time_freq

This commit is contained in:
Jupeyy 2018-03-12 16:41:02 +01:00
parent c6a9aadbb0
commit 72c38bca0c

View file

@ -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