On 09/26/2011 10:30 PM, Steven Schveighoffer wrote:
On Mon, 26 Sep 2011 15:58:48 -0400, bearophile
<bearophileh...@lycos.com> wrote:

Christian K.:

i totally misused the stopwatch api.

I have misused it the same way, the first time. If other people will
find the same problem then it means its API has problems.

Have you ever used a real stopwatch? It works the same way :) Start/stop
does not reset the time to 0, it just adds more time to the total. Reset
clears to 0.

I think probably the documentation needs to be better. The example also
suggests start resets the stopwatch.

-Steve
you are totally right ... it is the same as a real stopwatch ... so there should be no problem (i also used it correctly in another benchmark, but it was quite late and ...)

thanks

christian


Reply via email to