| Issue |
242525
|
| Summary |
[libc] Implement C23 timespec_getres in <time.h>
|
| Labels |
libc
|
| Assignees |
|
| Reporter |
amanmaurya92
|
### Feature Request
C23 (ISO/IEC 9899:2024) introduced \ imespec_getres\ in \<time.h>\ (§7.29.2.6) to query the resolution of supported time bases (such as \TIME_UTC\), complementing \ imespec_get\.
- Standard reference: ISO/IEC 9899:2024 (C23) §7.29.2.6 The \ imespec_getres\ function.
- Signature:
\\\c
int timespec_getres(struct timespec *ts, int base);
\\\`n
LLVM libc currently implements \ imespec_get\ and \clock_getres\, but \ imespec_getres\ is not yet available. On Linux systems, \ imespec_getres\ can be implemented via \clock_getres(CLOCK_REALTIME, ts)\. We plan to implement and test this function.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs