
Go to the source code of this file.
Classes | |
| struct | TimeStamper< IntType > |
| class | TimeStampedEvent< Stamper > |
Typedefs | |
| typedef TimeStamper< unsigned long int > | DefaultTimeStamper |
Copyright (C) 2002, 2003 Oliver Schoenborn
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
You can redistribute it and/or modify it under the terms found in the LICENSE file that is included in the library distribution.
Definition in file TimeStampedEvent.h.
| typedef TimeStamper<unsigned long int> DefaultTimeStamper |
Default time stamper just uses a counter of type unsigned long int. It has the benefit of
Time stampers that rely on system clocks typically suffer in all three areas: the call is relatively costly, several events may end up with the same time stamp, the system clock may provide different resolutions on different systems, and may not be accessible with the same system calls.
The only disadvantage is that the time stamp will cycle every 2^N events, where N is the number of bits for the long int data type. Consequences:
If this limitation is not acceptable, you have two choices:
Definition at line 101 of file TimeStampedEvent.h.
1.5.6