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

Application help : can't correctly implement to time a class constructor #2

Open
LeeRuns opened this issue Mar 9, 2022 · 0 comments

Comments

@LeeRuns
Copy link

LeeRuns commented Mar 9, 2022

My template functor skills are still growing....I cannot seem to implement this.. can you tell me how to call a class constructor as my function

class MyClass{
MyClass(string mystring, bool mybool);
}

Then it does a bunch of maths, and permutations so I want to timeit ;)

ctimeit::timeit<MyClass,string,int>( MyClass::MyClass, "my string", true );

But that fails, and the debugger, nor other tools seem to elucidate how I can actually implement this.
Any help would be appreciated.

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

1 participant