Surya K wrote:
I am actually using a activestate wrapper for calculating execution time of my
program.
[...]
I tested it for a puzzle and that showed me around 1385.33 usec/sec..However, as its from facebook hackers cup where I got a penalty time of 28.32.00 (not exactly, forgot)..
what units
I am actually using a activestate wrapper for calculating execution time of my
program.
This is the code
#!/usr/bin/python# A simple wrapper for the timeit module.import timeit
def Timeit(func,number=1,module="__main__"):""" A wrapper which can
be used to time any function """
n