You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just wanted to ask before maybe cleaning this up for a proper PR.
This package is great, but one minor incovenience is labeling all your timed lines, and also the fact that it can be quite verbose so your code doesn't read as cleanly afterwards (assuming you want to leave the timers in there permanently). This tiny wrapper macro solves both of those things. From its docs:
@⌛ code ...@⌛function_definition() =....
Label a section of code to be timed. The first form uses the code
itselfs as a label, the second uses the function name, and its the
body of the function which is timed.
To run the timer and print output, returning the result of the
calculation, use
@show⌛run_code()
Timing uses `TimerOutputs.get_defaulttimer()`.
Let me know if you're interested in a PR, but also feel free to pass. Entire code below. Unicode chosen democratically via Slack :)
I just wanted to ask before maybe cleaning this up for a proper PR.
This package is great, but one minor incovenience is labeling all your timed lines, and also the fact that it can be quite verbose so your code doesn't read as cleanly afterwards (assuming you want to leave the timers in there permanently). This tiny wrapper macro solves both of those things. From its docs:
Let me know if you're interested in a PR, but also feel free to pass. Entire code below. Unicode chosen democratically via Slack :)
The text was updated successfully, but these errors were encountered: