swig/Examples/python/performance/hierarchy_operator/runme_optimized.py
2011-02-10 05:15:03 +00:00

11 lines
212 B
Python

#!/usr/bin/env python
import Simple_optimized
import time
t1 = time.clock()
x = Simple_optimized.H()
for i in range(10000000) :
x += i
t2 = time.clock()
print "Simple_optimized took %f seconds" % (t2 - t1)