Your entry function: Loop() only executes the the function once.
It enters the function, then runs the FOR loop once, executing TimeScaleDown(), and sleeping for 1 second, then exits and runs TimeScaleReset().
Get rid of the for loop and use a while loop that checks a custom condition.
A...