|
Boost
»
Boost - Dev
[timer] an accumulating_timer would be nice
View:
Threaded
Chronologically
All Messages
New views
1 Messages —
Rating Filter:
0
1
2
3
4
5
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
Free embeddable forum
powered by
Nabble
Forum Help