Mouse speed

Hi,
Can i trace the mouse speed ? Means can i check the mouse is moving faster or slower ? is there any command for that ?
Or can i trace the mouse speed ?
Please help me out.
-soha