Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python sleep

import time

start = time.time()
print("sleeping...")
time.sleep(0.5)
print("woke up...")
elapsed_time = time.time() - start

print("elapsed time:", elapsed_time * 1000, "milliseconds")
Source by net-informations.com #
 
PREVIOUS NEXT
Tagged: #python #sleep
ADD COMMENT
Topic
Name
3+3 =