CarletonURocketry / fetcher

A QNX process for fetching data from sensors over I2C.
https://carletonurocketry.github.io/fetcher/
MIT License
1 stars 0 forks source link

Replace gettimeofday in sysclock with clock_gettime #38

Closed AngusJull closed 3 months ago

AngusJull commented 4 months ago

clock_gettime is a POSIX way of doing things, gettimeofday is deprecated in newer versions of QNX, and it allows selection of different clocks. An example use of clock_gettime can be found in m10spg.c.

linguini1 commented 4 months ago

It's deprecated? It's also in the POSIX standard. Must have missed this in Steve's slides lol I guess the man pages do say that version of POSIX is obsolete

AngusJull commented 4 months ago

Yeah I guess my language is kinda wrong there. The suggestion is based on this page, and some answers I was reading on the internet.

linguini1 commented 3 months ago

Finished in #54