Execution Time Script

Good afternoon friends

I would like to know if anyone knows the execution time of a script.

if the execution time is measured by comparison or equalization

This to know if I elaborate a very extensive script when time will take to execute

1 Like

You can measure the execution time by using:

import time
start=time.clock()

.... 

end=time.clock()
execTime=end-start

Use java’s System.nanoTime().

from java.lang import System

start = System.nanoTime()
....
end = System.nanoTime()

print "Took %d nanoseconds" % (end-start)
2 Likes