Boost logo

Boost :

Subject: [boost] [timer] an accumulating_timer would be nice
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2009-11-05 04:56:25


Hi,

For some measurements, it would be nice with a timer with the following
interface

class accumulating_timer
{
public:
    accumulating_timer(); // don't start timing
    void start();
    void stop();
    double elapsed() const;
};

The benefit here would be that we don't have to convert to seconds until
that data is actually needed.

Thoughts?

-Thorsten


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk