Why are these two variables floats? The change in position is a number of clicks. Surely, you didn't turn the encoder 3.14159 clicks. The change in time is in milliseconds.
What have you tried? If the encoder outputs 2000 pulses per revolution, then dividing the number of pulses by 2000 should give the number of revolutions, right? The number of revolutions divided by the time taken the detect that number of pulses will give revolutions/xxx, where xxx is the unit of time. tTravel being in milliseconds, the rate of rotation will be revolutions per millisecond. It isn't rocket surgery to convert that to revolutions per second, revolutions per minute, or revolutions per fortnight.