def decorate(args):
        """ concrete decorator measuring the execution time of
            given function or method """
        start = time.clock()
        result = function(args)
        print("...profiling of '%s': tooks %f seconds" \
              % (function.__name__, time.clock()-start))
        #print("  -> %s" % (function.__doc__))
        return result
 concrete decorator measuring the execution time of
            given function or method 
recipes/Python/577329_Some_prime_generation_algorithms/recipe-577329.py