If you need better resolution than 1ms, you need to go to a "LabVIEW
Realtime" system. (You should also make a distinction between
"resolution" and "precision". I would not even trust a timing result
of several ms on e.g. Windows. Too many other things could be going
on).

If you just need to do some timing on a piece of code for
benchmarking, put it in a loop, time the total loop execution, then
divide by the loop count. If you loop 1000 times, it will get you an
apparent resolution of 1 microsecond. The result will still show a
significant scatter due to other things taking place. To get more
reproducible results, set the benchmarking VI to "time critical
priority", run it a few times, then take the fastest.

("Time critical priority", puts most other stuff on the backburner, so
this is not recommended for normal tasks. mouse movements will be very
sluggish, and in my case I even loose wireless internet connectivity,
because the driver gets starved.)

Reply via email to