I don’t know if this is a mistake, or am I the only one who encounters this,
In the Eclipse CDT indigo, create a new executable C ++ project and create a CPP file in the C ++ source folder. ie SRC / test.cpp
#include<iostream>
#include<ctime>
using namespace std;
int main()
{
clock_t strt = clock();
int i = 2;
clock_t end = clock();
cout<<(end-strt)*1000.0f/CLOCKS_PER_SEC;
return 0;
}
Now you will see that CLOCKS_PER_SEC is not resolved, but the compilation of the project is successful and works fine. I'm on ubuntu 10.10 64 bit. Is this an error or some settings freeze (indexer?)?
source
share