cyberdelia/statsd

return for .Time() instead of callback?

tj opened this issue · 2 comments

tj commented

would you be interested in a patch to return a function instead of the callback?

Could you sketch out what it would look like?

tj commented

actually nevermind this should be fine! maybe a separate method for:

end := c.Time("foo")
...
end()

but not a big deal I can just move some logic to another method and wrap that way