lundi 20 avril 2015

Reliable short time span measurements

I need code that will provide "Ticks" of 10 miliseconds exactly and I am buffled in view of the many articles some contradicting others regarding how to accomplish this in Windows.

I've managed the first step - using the MultiMedia timer to provide sleeps of 1 mili.

Is there a way to ensure that the sleep code will work on all machines IsHighResolution either true or false, single or multi processor systems etc?

[edit] A previous question ragarding the problem with using StopWatch in a multicore system: Multicore and thread aware .Net stopwatch? [/edit]

Aucun commentaire:

Enregistrer un commentaire