I have two methods foo1 and foo2 running in an infinite loop, based on an if condition. I want to know how much time does each function consumes untill the loop breaks?
while(x):
if y:
foo1()
else:
foo2()
update(x,y)
I have two methods foo1 and foo2 running in an infinite loop, based on an if condition. I want to know how much time does each function consumes untill the loop breaks?
while(x):
if y:
foo1()
else:
foo2()
update(x,y)