Frage

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

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top