Use java’s System.nanoTime().
from java.lang import System
start = System.nanoTime()
....
end = System.nanoTime()
print "Took %d nanoseconds" % (end-start)
Use java’s System.nanoTime().
from java.lang import System
start = System.nanoTime()
....
end = System.nanoTime()
print "Took %d nanoseconds" % (end-start)