The ____ function in Python’s time module can be used to measure the elapsed time and is useful for profiling.

  • clock()
  • measure()
  • sleep()
  • timeit()
The clock() function in Python's time module can be used to measure elapsed time. It's commonly used for profiling code execution and benchmarking. Note that in Python 3.3 and later, time.clock() has been deprecated in favor of time.perf_counter().
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *