Skip to content

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

@akoeplinger

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

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions