[SOLVED]frequency measurment

it is a rotary encoder of resolution 512 PPR rotating at max. of 450 rpm .

as i am using spi device with arduino it disables interrupt therefore i do not want to use interrupt
and also as i only want velocity ( which will be proportional to frequency ) i want to remove load from arduino