[timer] an accumulating_timer would be nice

View: New views
1 Messages — Rating Filter:   Alert me  

[timer] an accumulating_timer would be nice

by Thorsten Ottosen-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost