Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::timer elapsed time
From: Roman Perepelitsa (roman.perepelitsa_at_[hidden])
Date: 2010-03-10 08:25:16


2010/3/10 zbierak <zbierak_at_[hidden]>

> 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!

boost::timer uses function clock to measure time. On linux clock returns CPU
time, while on windows it returns wall time. You program probably does not
consume CPU, that's why you get zero results on linux.

Roman Perepelitsa.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net