30#ifndef TINS_TIMESTAMP_H
31#define TINS_TIMESTAMP_H
34#include <tins/macros.h>
35#include <tins/cxxstd.h>
71 template<
typename Rep,
typename Period>
73 timestamp_ = std::chrono::duration_cast<std::chrono::microseconds>(
ts).count();
87 seconds_type seconds()
const;
95 microseconds_type microseconds()
const;
101 operator std::chrono::microseconds()
const {
102 return std::chrono::microseconds(timestamp_);
Represents a range of addresses.
Definition address_range.h:167
Represents a packet timestamp.
Definition timestamp.h:47
Timestamp(const std::chrono::duration< Rep, Period > &ts)
Definition timestamp.h:72
The Tins namespace.
Definition address_range.h:38