I want a piece of code that stops exactly in one second
note using time.sleep()
does not do the job precisely
here is what I have so far(that doesn't give me precise result)
import time
import sys
start_time = time.time()
time.sleep(.99483-(time.time() - start_time))
print(time.time() - start_time)
sys.exit(0)
also note that the final time should include the last line which is sys.exit(0)
execution
I appreciate any help or advice you could spear