blob: 1da0fe7c2948544fa73c84591ffcb3f5daa07f06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import __py_include
from homekit.util import Stopwatch, StopwatchError
from time import sleep
if __name__ == '__main__':
s = Stopwatch()
s.go()
sleep(2)
s.pause()
s.go()
sleep(1)
print(s.get_elapsed_time())
sleep(1)
print(s.get_elapsed_time())
s.pause()
print(s.get_elapsed_time())
|