i want to use the getexecutiontime() for a function in my program, but i want to use it for a function with arguments and the piece of code that i have is not working because my function have arguments
prim_MCST(adj_matrix,nv);
long getExecutionTime(void (*func)()); // define Function
long GetExecutionTime(void (*func)()){
long cTick, nTick;
cTick = GetTickCount();
(*func)();
nTick = GetTickCount();
return nTick - cTick;
}
int main(int argc, char *argv[])
{
cout << "Code executed in: " << GetExecutionTime(doSleep) << "ms \n";…