Which is the fastest way to do this or that? Why not try them all and benchmark! 🙂

All you need to do is lock at the time.clock()

I tried to make the snippet above as generic as possible, but if you’re using Python in Softimage, you can use XSIUtils.IsWindowsOS() for detecting Windows instead of my OStype stuff.

1 comment so far

Add Your Comment
  1. Or just make a decorator for timming your code, python is awesome 🙂