Mixin class to add a microsecond count to an existing class. More...
#include <wipal/tool/microseconds_stamp.hh>
Public Types | |
| typedef T | original_type | 
Public Member Functions | |
| microseconds_stamp (const tool::microseconds &, const T &=T()) | |
| template<class U > | |
| microseconds_stamp (const microseconds_stamp< U > &) | |
Access to the microsecond count  | |
| const tool::microseconds & | microseconds () const | 
| tool::microseconds & | microseconds () | 
Equality checks  | |
| bool | operator== (const microseconds_stamp &rhs) const | 
| bool | operator!= (const microseconds_stamp &rhs) const | 
Mixin class to add a microsecond count to an existing class.
This class subclasses its template parameter. Thus, it behaves mostly like it. This class adds a microsecond count attribute, which is initialized through the constructor, and which you may access with the microsecond() methods.
By default, this class' == operator does not compare the microsecond count. Subclass it and provide a custom == operator if this is not the desired behavior.
 1.6.2