Hi,
I have a Matlab program need to rewrite into C/C++ code. There is a built-in Matlab function "cputime" used in the Matlab program to return the CPU time used to run other user-defined function in another file. The usage in Matlab is " start=cputime ; function();//this function is defined in another file.. total=cputime-start" .So in this way to caculate CPU time for calling function. But i dont know what's the correspondent way to do it in C++. Any help is appreciated. Thanks everyone!!!!
I have a Matlab program need to rewrite into C/C++ code. There is a built-in Matlab function "cputime" used in the Matlab program to return the CPU time used to run other user-defined function in another file. The usage in Matlab is " start=cputime ; function();//this function is defined in another file.. total=cputime-start" .So in this way to caculate CPU time for calling function. But i dont know what's the correspondent way to do it in C++. Any help is appreciated. Thanks everyone!!!!