Hi,
I've been having a problem recently with boost::timer. I have the following
code:
#include <iostream>
#include
int main()
{
boost::timer t;
// (here: some initialization stuff)
t.restart();
// (here: a job that takes several seconts)
std::cout << "Total time: " << t.elapsed() << "s." << std::endl;
}
While on my windows machine it displays the correct time, when I compile it
on Ubuntu, it constantly displays zero seconds, regardless how long the job
really takes. Do you have any ideas why that might be happening? I'm using
boost 1.40 and Ubuntu 9.04. Thanx in advance!
--
View this message in context: http://old.nabble.com/boost%3A%3Atimer-elapsed-time-tp27846807p27846807.html
Sent from the Boost - Users mailing list archive at Nabble.com.