Constant or zero latency time-stamped Raw Input mouse-move.

Category: c# language

Question

GURAQTINVU on Thu, 06 Sep 2012 11:38:35


Does anyone have direct experience or knowledge of getting a timestamped (must be tick for accuracy) Raw Input mouse-move in Win 7.   I don't seem to be able to get clean times if I wait for the existing 'Raw Input Event' (which is misleading, given that Win 7 only polls the USB port and this is only at 125Hz by default and even if you tweak the driver to 1000 Hz it is at its discretion it seems).

It would be great to be able to attach an event to a USB ports arriving data and have it time-stamped on arrival, no ifs, no buts.  One could then poll to ones heart content if so desired, because of the time-stamp.

Thanks a lot.

Replies

GURAQTINVU on Fri, 07 Sep 2012 16:16:39


I suspect that we have a confused scenario, the ticks I refer to occur every 1/10,000,000 second in Win 7 and .NET 4. We are hoping to get say a minimum of 1,000 reliable measurements, that include a timestamp in ticks from the mouse every second.

Does this make sense – thanks



JohnWein on Fri, 07 Sep 2012 16:25:46


John I suspect that we have a confused scenario, the ticks I refer to occur every 1/10,000,000 second in Win 7 and .NET 4. We are hoping to get say a minimum of 1,000 reliable measurements, that include a timestamp in ticks from the mouse every second.

Does this make sense – thanks Richard

Not with Win7 which is a multi-tasking operating system.  You need a system with a dedicated processor to collect the data.  The data can be transferred to a Win7 system for analysis and display.