https://computerbestrepair.blogspot.com/2022/10/execute-function-every-nth-second.html
Execute Function Every Nth Second