mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
merge mac and linux impl into one
This commit is contained in:
parent
5b56e5b2c4
commit
3858a930a9
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue