Using Millis with optical encoder

"abusing volatile variables" sounds like a hanging offense!
Could you give me an example please wildbill?