def timings_decorator(func):
    if (not TIMINGS):
        return func

    @wraps(func)
    def func_wrapper(*args, **kwargs):
        t0 = time.clock()
        try:
            return func(*args, **kwargs)
        finally:
            t1 = time.clock()
            duration = ((t1 - t0) * (10 ** 6))
            Stats.LastTiming = duration
            log.debug(text.format(func=func.__name__, time=duration))
    return func_wrapper
def timings_decorator(func):
    if (not TIMINGS):
        return func

    @wraps(func)
    def func_wrapper(*args, **kwargs):
        t0 = time.clock()
        try:
            return func(*args, **kwargs)
        finally:
            t1 = time.clock()
            duration = ((t1 - t0) * (10 ** 6))
            Stats.LastTiming = duration
            log.debug(text.format(func=func.__name__, time=duration))
    return func_wrapper