Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ delta
Method
delta
recipes/Python/577475_Power_Of_Two/recipe-577475.py:15–16 ·
view source on GitHub ↗
(start)
Source
from the content-addressed store, hash-verified
13
# calculating delta between current time and start time.
14
@staticmethod
15
def
delta(start):
16
return
Timer.function() - start
17
18
# background information: http://en.wikipedia.org/wiki/Power_of_two
19
class
PowerOfTwo:
Callers
1
main
Function · 0.45
Calls
1
function
Method · 0.45
Tested by
no test coverage detected