The above code displays outputs similar to:Code:#include<iostream> #include<time.h> using namespace std; int main(void){ clock_t start, finish; start=clock(); cout<<start<<endl; cin.get(); finish=clock(); cout<<finish<<endl; cin.get(); }
It depends on how fast I hit the return key, of course. My question is: what is the unit of time displayed? I am guessing it to be milliseconds.Code:0 468




Reply With Quote