merge mac and linux impl into one

This commit is contained in:
Jupeyy 2018-03-12 17:10:11 +01:00
parent 5b56e5b2c4
commit 3858a930a9

View file

@ -1010,14 +1010,10 @@ int64 time_freq()
int64 time_get_microseconds()
{
#if defined(CONF_PLATFORM_MACOSX)
return time_get_impl() / (time_freq() / 1000 / 1000 / 1000);
#elif defined(CONF_FAMILY_UNIX)
return time_get_impl() / (time_freq() / 1000 / 1000);
#elif defined(CONF_FAMILY_WINDOWS)
#if defined(CONF_FAMILY_WINDOWS)
return (time_get_impl() * (int64)1000000) / time_freq();
#else
#error not implemented
return time_get_impl() / (time_freq() / 1000 / 1000);
#endif
}