
Hello, Using gcc on ubuntu, can anyone tell my why this simple code: ///////////////////////////////////////////////// #include <iostream> using namespace std; #include "boost/timer.hpp" #include <time.h> int main() { clock_t t = clock(); boost::timer bt; cout << t << " : " << bt.elapsed() << endl; sleep(10); t = clock(); cout << t << " : " << bt.elapsed() << endl; sleep(10); t = clock(); cout << t << " : " << bt.elapsed() << endl; return 0; } //////////////////////////////////////////////////////////////// produces output like this: 0 : 0 0 : 0 0 : 0 Its not cout, since pausing the program shows the values to be 0 in the watch window. Many thanks Simon -- Linux Counter: User# 424693