Running 64-bit Fedora 8 on HP laptop with AMD Turion 64bit/dual core, developing in Eclipse, compiling with g++. The clock();
function always returns 0. Any ideas why this is so? I have had no problems using the rest of the ctime
library.
#include <ctime>
using std::clock;
#include <iostream>
using std::cout;
int main()
{
for (int i=0; i < 50; i++)
{
cout << clock() << '\n';
}
return 0;
}
Thanks.