def print_time(func):
    def wrapped_func(*args, **kwargs):
        start = time.time()
        result = func(*args, **kwargs)
        end = time.time()
        seconds = end - start
        print "SECONDS:", seconds, func.__name__, kwargs
        return result
    return wrapped_func
Internal method to create a url from an endpoint.
dataset/ETHPy150Open kobotoolbox/kobocat/onadata/libs/utils/timing.py/print_time--crossover with--dataset/ETHPy150Open dhhagan/py-openaq/openaq/__init__.py/API._make_url