-6

I am trying to measure time it took to perform my function using time.time() module.

start=time.time()
print(funcV1(sample,result))
finish=time.time()

When I calculate time-difference, it shows me e-05 at the end. What does it mean ?

>>> start
1579830996.868476
>>> finish
1579830996.8685372
>>> finish-start
6.127357482910156e-05
Matus Hmelar
  • 348
  • 3
  • 13

1 Answers1

1

If you want to measure the elapsed time to execute a funcV1 in seconds:

`
import time
start=time.time()
print(funcV1(sample,result))
finish= time.time()
print("elapsed time=",finish-start)

`