2 #ifndef vul_timestamp_h 3 #define vul_timestamp_h 4 #include <vul/vul_export.h> 19 static VUL_EXPORT
unsigned long mark;
47 #endif // vul_timestamp_h bool older(vul_timestamp const &t) const
Returns true if t is older than the last timestamp.
static unsigned long get_unique_timestamp()
get a new timestamp.
bool older(vul_timestamp const *t) const
Returns true if t is older than the last timestamp.
virtual ~vul_timestamp()=default
Destructor.
class to generate a unique timestamp.
void touch()
Get a new timestamp.
unsigned long get_time_stamp() const
Get a new timestamp (incremented by 1 each time).
vul_timestamp()
Constructor.
static VUL_EXPORT unsigned long mark
mark is incremented to give a unique timestamp.
unsigned long timestamp_
last timestamp.