Add timing decorator utility 97/25797/2
authorGeorge Paraskevopoulos <geopar@intracom-telecom.com>
Mon, 12 Dec 2016 14:12:14 +0000 (16:12 +0200)
committerGeorge Paraskevopoulos <geopar@intracom-telecom.com>
Tue, 13 Dec 2016 12:49:59 +0000 (14:49 +0200)
commit13a6297089972c74a0be6030c687d51c8efd2e3f
tree1062b4e4021aad84a55c7e33ae8a3e87c62bb0f2
parent23817158e859f2261a9fd276e0bc2bfca5771731
Add timing decorator utility

Create "timethis" utility decorator that prints how long it takes for an
arbitrary function to complete

USAGE:

@functest.utils.functest_utils.timethis
def function_to_be_timed(...):
    ...

Change-Id: I41730c01b6889a9fa1ede4c5863841648b5af9c7
Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
functest/utils/functest_utils.py