+ Deleted duplicate definitions of StructTimeVal and StructTimeValPtr.
+ Caled syscall clock_gettime to get timespec data.
+ Added tests to test for sleeping 200 and 1000 microseconds.
+ Fixed comments from https://reviews.llvm.org/D137881
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/src/time/gettimeofday.cpp | ||
---|---|---|
26 | Nit: You can avoid the clockid var and just use long(CLOCK_REALTIME) here. |
Nit: You can avoid the clockid var and just use long(CLOCK_REALTIME) here.