Anonymous user
Time a function: Difference between revisions
→{{header|Python}}: add import
No edit summary |
(→{{header|Python}}: add import) |
||
Line 1,928:
=={{header|Python}}==
Given ''function'' and ''arguments'' return a time (in microseconds) it takes to make the call.
Line 1,952 ⟶ 1,947:
raise
from math import pow
def nothing(): pass
def identity(x): return x</lang>
|