If you just want to measure user space software input lag, shouldn't it be more accurate if you print out the time when the event arrives in the kernel, and again when the mouse moves within a application window?
Depends what you want to measure. But generally, people are more sensitive to latencies in movement of the visual cursor than they are to applications responding to it.