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.
問題は、ミリ秒またはナノ秒の形式で C++ の時間を取得することです。ただし、次のように時間を秒単位で取得する方法しか知りません。
#include <ctime> ... time = ctime(0) ; ...
ミリ秒またはナノ秒で時間を取得するために同様の操作を行う方法を知りたいです。インクルードする必要があるヘッダー、呼び出す関数、およびそれらの引数は何ですか?