https://cookingbrush.com/how-do-you-write-a-delay-function/
How do you write a delay function?