21 Sep
2011
21 Sep
'11
2:37 p.m.
AMDG On 09/21/2011 07:27 AM, 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... (?)
You'd have to check the C standard. C++ inherits clock from C as is. IIRC, the behavior varies by platform. In Christ, Steven Watanabe