$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] boost timer with sleep
From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2008-11-11 04:13:25
Andre Paim Lemos wrote:
[...]
> andre_at_andre-desktop:~/test$ ./timer_test
> 0
> 0
>
> Is this result expected? Why?
I'd say yes, this is expected. The class is documented as using clock() for
measuring time, and clock() return the processor time used by the process.
> There is another timer implementation that works with sleep?
In Boost? Not that I'm aware of. Have a look at gettimeofday() to roll your
own.
>
> []'s
> Andre Paim Lemos
HTH, Markus