PEATDB/zodbtest.py
def Timeit(func,number=1,module="__main__"):
    """ A wrapper which can be used to time any function """

    name = func.__name__
    t = timeit.Timer("%s()"%name, "from %s import %s" % (module, name))
    return "%.2f usec/pass" % (1000000*t.timeit(number=number)/number)
 A wrapper which can be used to time any function 
A wrapper which can be used to time any function
A wrapper which can be used to time any function
def Timeit(func,number=1,module="__main__"):
    name = func.__name__
    t = timeit.Timer("%s()"%name, "from %s import %s" % (module, name))
    return "%.2f usec/pass" % (1000000*t.timeit(number=number)/number)
def Timeit ( func , number = 1 , module = "__main__" ) : name = func . __name__ t = timeit . Timer ( "%s()" % name , "from %s import %s" % ( module , name ) ) return "%.2f usec/pass" % ( 1000000 * t . timeit ( number = number ) / number )
A wrapper which can be used to time any function
A wrapper which can be used to time any function
""" A wrapper which can be used to time any function """
func
number
module