Is There A Method To Count Time Without Imports?
I've got a CASIO fx-CG50 with python running extended version of micropython 1.9.4 Decided to make a game but I really need a sleep function, I cannot use any imports as everything
Solution 1:
If you cannot import time (or utime) in your code, you could always implement a simple function that loops for a certain number of steps:
def wait(step):
for i in range(step):
pass
wait(999999)
In that case, the actual time spent in the function will depend on the computational power of your device.
Post a Comment for "Is There A Method To Count Time Without Imports?"