In my original code I had the parameter order incorrect, the first parameter should be time, the second should be the variable that holds the callback function, and the third is optional but it’s the number of iterations.
It should be this:
timer.performWithDelay( 1000, doThis, 1 )
Also it’s important to not include the brackets for the callback function in the creation as if you do you’re not passing in the actual function but rather you can calling the function right then and passing in whatever return value it has, which in this case is nil.
Your timer is then getting created with a “nil” time value as the first parameter and the value 1000 for the callback function.