Question #301

What is the difference between time.time() and time.perf_counter()?

The reference point of the returned value of time.perf_counter() is undefined; only the difference between the results of consecutive calls is valid. (docs.python.org/3/library/time.html)


Comment on Disqus:

Question difficulty: 🔵🔵🔵🔵🔵