MCPcopy 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

testSlotMethod · 0.95
testSetSlotMethod · 0.95
testBlockMethod · 0.95
testInstantiationsMethod · 0.95
testLocalsMethod · 0.95
testSetLocalsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected