Using Millis with optical encoder

Not sure what you're asking.