git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
whoops, stupid me
[plcapi.git]
/
PLC
/
Debug.py
diff --git
a/PLC/Debug.py
b/PLC/Debug.py
index
ccd7db7
..
27f9885
100644
(file)
--- a/
PLC/Debug.py
+++ b/
PLC/Debug.py
@@
-1,3
+1,4
@@
+# log system for PLCAPI
import time
import sys
import syslog
@@
-46,8
+47,9
@@
def profile(callable):
return wrapper
if __name__ == "__main__":
- @profile
def sleep(seconds = 1):
time.sleep(seconds)
+ sleep = profile(sleep)
+
sleep(1)