I'm pretty new to C++, I need to print the execution time of my program in milliseconds with 4 digits (X.XXX) - I tried to use
double start_s=clock();
// my program here
double stop_s=clock();
cout << "time: " << (stop_s) << endl;
I got 0. What am I doing wrong? Btw I am using (and have to use, college project) VS2010, so chrono is not an option.