Source code for acq400_hapi.utils

'''
Created on 11 Jul 2021

@author: pgm
'''

import time
from functools import wraps

[docs]def timing(f): @wraps(f) def wrap(*args, **kw): ts = time.time() result = f(*args, **kw) te = time.time() print('TIMING:func:%r took: %2.2f sec' % (f.__name__, te-ts)) return result return wrap