Hello, everyone.
I'm working on rebuilding a GUI for an ultrasound machine and magnetic position sensor.
I'm rebuilding the GUI because the previous coder's work ran too slowly, not allowing for the 30 fps capture rate that the (less useful) company-provided code was capable of.
The original company code is driven off the comm port events from the magnetic sensor, with a timer that was used (at 10 fps) for captures where the sensor was unavailable.
I'm wondering if I can get much closer to 30 fps without the sensor inputs, but I'm not sure it's possible.
According to MSDN, the System.Timer interrupt interval has true precision down to 1/18th of a second, which is too slow for my purposes.
System.Environment.TickCount has "A minimum resolution of 500 milliseconds", which (I think) means it would only be capable of 2 fps.
But then, there is DateTime.Ticks, which appears to be able to give me a response in 100 nanosecond (.0001 Millisecond) intervals.
Is there a way to use DateTime.Ticks to create an interrupt that triggers more often than System.Timer?
Or should I just stick with the "30 fps with the sensor and 10 fps without" method?
Thanks in advance!