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

Add function to benchmark compile time execution #1

Open
Viatorus opened this issue Jan 3, 2021 · 0 comments
Open

Add function to benchmark compile time execution #1

Viatorus opened this issue Jan 3, 2021 · 0 comments
Labels
cpp issues related to the C++ part enhancement New feature or request python issues related to the Python part

Comments

@Viatorus
Copy link
Owner

Viatorus commented Jan 3, 2021

auto dur = ctp::bench(1 /* id */, []{
   // code...
});

ctp::print(dur); // 1s 12 ms
@Viatorus Viatorus added the enhancement New feature or request label Jan 3, 2021
@Viatorus Viatorus changed the title add function to benchmark compile time execution Add function to benchmark compile time execution Jan 3, 2021
@Viatorus Viatorus added cpp issues related to the C++ part python issues related to the Python part labels Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpp issues related to the C++ part enhancement New feature or request python issues related to the Python part
Projects
None yet
Development

No branches or pull requests

1 participant