bradbell / cmpad

Compare Algorithmic Differentaiton Packages
1 stars 1 forks source link

confused about the logic in fun_speed #12

Closed utke1 closed 6 days ago

utke1 commented 1 week ago

https://github.com/bradbell/cmpad/blob/d8508ab941f119e74105b164139408708a30e9c4/python/cmpad/fun_speed.py#L89C4-L95C30

The lines referenced above - when I step through with the debugger line by line it happens slow enough so that t_diff is big enough and in the debugger I never enter the while loop . So the question why do you call before the while loop default timer to set start and end and compute the diff instead of not invoking the default timer and simply setting t_diff=0 ?

bradbell commented 1 week ago

I think I did as your suggested; see fun_peed.py in commit https://github.com/bradbell/cmpad/commit/3febdb224223cf3bfbd7213b10fd8da154255d07

Please close this issue if you are satisfied with the commit above.

utke1 commented 6 days ago

yes, thanks