Thanks for improving the code, Should I just use millis function
instead of the whole code if there is no any difference...