So are you getting multiple interrupts from a single transition of your wheel ?
Or is your program running so slowly that you only get to check, after the wheel has turned many times ?
Or are you getting spurious triggering from your wheel ? Most implementation seem to be trying to shine some kind
of light through a hole or slot in the wheel, not trying to detect the black and white colour.
Those long delays in your program look unhelpful.