7 years, 5 months ago.  This question has been closed. Reason: Off Topic

how to get joystick clock signal or program a clock signal to catch real time input (from joystick)

I want to get the time when reading each position from joystick, for example at t=1ms, x=100, at t=30ms, x=500,so that i can also calculate the speed of joystick movement. If not can I program a time variable to match with the position read from joystick? I am new to this stuff