Use VSCode. It will do half of the typing for you and tell you when you are missing closing brackets and pipes and the like.
But also realize that Thread::sleep and Timer are two very different things. Timers are the appropriate thing to use in this case, regardless of how awkward you find using them.