fork(1) download
  1. import time
  2.  
  3.  
  4. def countdown(n):
  5. start = time.process_time()
  6. while n > 0:
  7. n -= 1
  8. print(time.process_time() - start)
  9.  
  10.  
  11. countdown(100)
Success #stdin #stdout 0.02s 9056KB
stdin
Standard input is empty
stdout
5.431999999999659e-06