This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Unable to use CLOCK_MONOTONIC for arm-none-eabi-gcc

Hey all, I'm pretty new to the scene.

I'm trying to use CLOCK_MONOTONIC as defined in the newlib library under time.h, but I'm unable to for whatever reason. I'm attempting to use it in clock_gettime(CLOCK_MONOTONIC, &ts_now) as seen below, and wondering if it's because of a faulty arm-none-eabi install?


Cross Compiler: gcc-arm-none-eabi-10-2020-q4-major

Environment: Ubuntu 18.04.5

Any help is appreciated, thanks!