Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IoLanguage/io
/ endTimer
Method
endTimer
samples/speed/speed.py:17–19 ·
view source on GitHub ↗
(self, s)
Source
from the content-addressed store, hash-verified
15
self.t1 = time.time()
16
17
def
endTimer(self, s):
18
mps = 1/(time.time() - self.t1)
19
print(
"Python %s := %0.2f"
% (s, mps))
20
21
def
testSlot(self):
22
self.beginTimer()
Callers
6
testSlot
Method · 0.95
testSetSlot
Method · 0.95
testBlock
Method · 0.95
testInstantiations
Method · 0.95
testLocals
Method · 0.95
testSetLocals
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected