Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utility to time function execution #13

Closed
orhanbalci opened this issue Jul 6, 2017 · 2 comments
Closed

Utility to time function execution #13

orhanbalci opened this issue Jul 6, 2017 · 2 comments

Comments

@orhanbalci
Copy link

It would be nice to have a utility function that tracks execution time of a given closure or function.

@ellisonch
Copy link
Owner

If I understand you right, you're looking for something that takes in a function, and returns a new function with the same inputs as the original function, but calling it would return a pair consisting of the original result, as well as the elapsed time? I'm not sure that belongs in the library itself, but it should be something pretty straightforward to make.

Anyone have thoughts?

@ellisonch
Copy link
Owner

Let me know if you have any more questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants