git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ae114f8
)
- python 2.2 compatibility
author
Mark Huang
<mlhuang@cs.princeton.edu>
Sun, 29 Oct 2006 02:35:28 +0000
(
02:35
+0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Sun, 29 Oct 2006 02:35:28 +0000
(
02:35
+0000)
PLC/Debug.py
patch
|
blob
|
history
diff --git
a/PLC/Debug.py
b/PLC/Debug.py
index
ccd7db7
..
b8dac85
100644
(file)
--- 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)