Domanda

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

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top