repo.or.cz
/
Laueye.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add a tick interface
[Laueye.git]
/
src
/
tick.py
blob
ce8a19c63fb096f6eb5b159345855928a9c6a4f8
1
2
from
time
import
time
3
class
tick
:
4
def
__init__
(
self
):
5
self
.
timep
=
time
()
6
7
def
tick
(
self
,
msg
):
8
print
msg
+
':'
,
time
() -
self
.
timep
,
's'
9
self
.
timep
=
time
()
10