measuring time of rotation encoder with  timer, I used a  texas instruments TIVA Launchpad