X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FDebug.py;h=b8dac85e5e461637431c716b6e82ff4f6f1c9906;hb=c50973bdffebb5f7dd814a74be3e0549ca90a470;hp=ccd7db711413be51bfbfeab083fdf63cb12f69f2;hpb=24d16d18acab3da7bccc3e09df4927e9cf2d3246;p=plcapi.git diff --git a/PLC/Debug.py b/PLC/Debug.py index ccd7db7..b8dac85 100644 --- a/PLC/Debug.py +++ b/PLC/Debug.py @@ -46,8 +46,9 @@ def profile(callable): return wrapper if __name__ == "__main__": - @profile def sleep(seconds = 1): time.sleep(seconds) + sleep = profile(sleep) + sleep(1)