I have a simple terminal cellular automata printin...
# getting-started
r
I have a simple terminal cellular automata printing to the terminal every generation. I want it to wait a few seconds between each loop. I have tried doing
Thread.sleep(1000)
which seems to do nothing. Is there no simple
time.sleep()
equivalent?
v
Thread.sleep
is in 98.7 % of cases where you are tempted to use it the wrong thing. But indeed it does not do nothing, but blocks the current thread for 1 second.
c
(which is exactly the same thing as
time.sleep()
does in Python, so we're going to need more information to know what you're expecting different)