datadog-go
datadog-go copied to clipboard
add time measurement with a func callback
func Time(name, fn func()) that reports how long something took
... I can make a PR for it unless there is a reason this is not wanted @truthbk ...
Hi @grosser,
I don't see anything wrong with doing this apart from a probable performance hit. Feel free to open a PR if you are still interested.
Arthur
I'd love this, most of the time we're measuring time anyway, so having a utility function like this would help a lot :slightly_smiling_face:
any idea if that PR will be merged?