@@ -0,0 +1,266 @@
+import time%0A%0Adef time_func(f):%0A    def wrap(*args, **kwargs):%0A        time1 = time.time()%0A        ret = f(*args, **kwargs)%0A        time2 = time.time()%0A        print '%25s function took %250.3f ms' %25 (f.func_name, (time2-time1)*1000.0)%0A        return ret%0A    return wrap%0A

Add decorator for timing functions