Boost Users :
Subject: Re: [Boost-users] [Timer] Using progress timers.
From: Lars Viklund (zao_at_[hidden])
Date: 2011-09-21 10:38:27
On Wed, Sep 21, 2011 at 04:27:40PM +0200, Sebastian PfÃ¼tzner wrote:
> On 21.09.2011 14:05, Lars Viklund wrote:
>> The man page for clock(3) on my system claims:
>> * The clock() function returns an approximation of processor time used
>> * by the program.
>> That doesn't seem to refer to wall time
> Is this correct according to the C++ standard? I always interpreted the
> differences between clock()-calls as wall time in conjunction with
> CLOCKS_PER_SEC. This constant wouldn't make sense otherwise... (?)
CLOCKS_PER_SEC is just a conversion factor between ticks and seconds of
C99 22.214.171.124/2 says:
The clock function determines the processor time used.
-- Lars Viklund | zao_at_[hidden]
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