Skip to content

Use timespec_get on iOS/tvOS/Catalyst now that we have 13.0 as min version #122440

Description

@akoeplinger

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;

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions