After #122436 we can get rid of this fallback:
|
#if defined(HOST_IOS) || defined(HOST_TVOS) || defined(HOST_MACCATALYST) || defined(HOST_ANDROID) |
|
// timespec_get is only available on iOS 13.0+ and not supported on Android API levels we target, use gettimeofday instead |
|
struct timeval tv; |
|
gettimeofday(&tv, nullptr); |
|
ts.tv_sec = tv.tv_sec; |
|
ts.tv_nsec = tv.tv_usec * 1000; |