Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
クロック速度が 25MHz のマイクロコントローラー ボードで QNX を実行しています。実行clock_gettime(CLOCK_REALTIME, &tp);すると、ミリ秒の精度しか得られません。クロック速度が遅いために ns の精度が不可能であることは承知していますが、可能なはずです。より良い精度を得るために、いくつかの構成フラグを設定する必要がありますか?
clock_gettime(CLOCK_REALTIME, &tp);