Using Millis with optical encoder

Tried that and no luck! Also, if I turn the encoder to slow it also misses the 100 for some reason!