I want to know how can I calculate running time in O_notation in C++ programs? Is there any code for that?
I have to use this code for showing the running time
clock_t start, end;
start = clock();
//CODES GOES HERE
end = clock();
std::cout << end - start << "\n";
std::cout << (double) (end-start) / CLOCKS_PER_SEC;
But I want to calculated it in O_notation code to implement it in 2 programs min-heap and prim's algorithm with array.