How to replacing (properly using) millis function

Now properly formatted for forum viewing :wink: