سؤال

Does boost chrono process_real_cpu_clock provide info in ticks or nanoseconds or different on windows and linux?

هل كانت مفيدة؟

المحلول

The definition for process_real_cpu_clock clearly identifies the member type duration as being in nanoseconds.

(Note that this does not in itself guarantee nanosecond precision or accuracy, only nanosecond units.)

You did not specify what version you are using, so I have assumed 1.55.0 for the link.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top