
11 Nov
2008
11 Nov
'08
9:13 a.m.
Andre Paim Lemos wrote: [...]
andre@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