Skip to content

[Build] use timespec_get to get current time #5252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 31, 2025

Conversation

python3kgae
Copy link
Contributor

Replace clock_gettime with timespec_get which works on Windows as well.

For #4661

Copy link

pytorch-bot bot commented Sep 10, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/5252

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure

As of commit 21094a9 with merge base 0342bab (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 10, 2024
@shoumikhin
Copy link
Contributor

@tarun292, @kirklandsign can you take a look please?

@larryliu0820
Copy link
Contributor

@pytorchbot rebase

Replace clock_gettime with timespec_get which works on Windows as well.

For pytorch#4661
@swolchok
Copy link
Contributor

apparently timespec_get is only available in recent versions of Android. confluentinc/librdkafka#3044

Copy link
Contributor

@swolchok swolchok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you'll need to change this to fix the android failure, feel free to ping me for re-review

@python3kgae
Copy link
Contributor Author

you'll need to change this to fix the android failure, feel free to ping me for re-review

Thanks for the feedback.
Updated.

Comment on lines 72 to 73
// above 29.
#if defined(__ANDROID_API__) && __ANDROID_API__ < 29
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment doesn't match the code -- comment says above 29, code says 29 or later

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@kirklandsign
Copy link
Contributor

Thank you!

@kirklandsign kirklandsign merged commit 48de264 into pytorch:main Mar 31, 2025
80 of 81 checks passed
kirklandsign pushed a commit that referenced this pull request Apr 11, 2025
Replace clock_gettime with timespec_get which works on Windows as well.

For #4661
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants