It would be good also to tidy up the variable name.
"lastMillis" would be better called "startMillis".