Skip to content

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

Closed

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;

Activity

  1. dotnet-policy-service commented on Dec 11, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'os-ios': @vitek-karas, @kotlarmilos, @steveisok, @akoeplinger
    See info in area-owners.md if you want to be subscribed.

  2. added
    untriaged
    on Dec 11, 2025
  3. removed
    untriaged
    on Dec 15, 2025
  4. added this to the 11.0.0 milestone on Dec 15, 2025
  5. added a commit that references this issue on Jul 6, 2026
    ad93685
  6. locked and limited conversation to collaborators on Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

  • Status
    No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions