Beispiel #1
0
# import time
from time import time as std_time, sleep as std_sleep

start = std_time()
print(f"Start at: {start}")

std_sleep(2)

end = std_time()
print(f"Stop at: {end}")
Beispiel #2
0
# import time
#
# start = time.time()
# print(f"Start at {start}")
#
# time.sleep(4)
# end = time.time()
# print(f"End at {end}")

from time import time as std_time, sleep as std_sleep

start = std_time()
print(f"Start at {start}")

std_sleep(4)
end = std_time()
print(f"End at {end}")