time_tracker
microsecond count to various PCAP and Prism fields.
More...
#include <wipal/wifi/time_converter.hh>
Public Types | |
typedef struct timeval | pcaptime_type |
typedef uint32_t | hosttime_type |
typedef uint32_t | mactime_type |
Static hierarchies related types | |
typedef HIDDEN | exact_type |
typedef tool::static_base < exact_type > | super_type |
Public Member Functions | |
time_converter (const pcaptime_type &local_pcaptime, const hosttime_type &local_hosttime, const mactime_type &local_mactime, const tool::microseconds &global_time) | |
time_values | operator() (const tool::microseconds &global_time) const |
Downcast methods | |
const exact_type & | exact () const |
exact_type & | exact () |
const exact_type * | exact_ptr () const |
exact_type * | exact_ptr () |
Classes | |
struct | time_values |
Hold time_converter 's conversion results. More... |
time_tracker
microsecond count to various PCAP and Prism fields.
Use the time_tracker
class to have a global timer that tracks frame arrivals. Use this class to convert time_tracker
values back into various time fields (e.g. PCAP time, Prism mactime
, etc.).
In order to work properly, this class must be able to map a reference microsecond count to reference time fields (PCAP time, host time, MAC time). Thus its constructor.
typedef HIDDEN wifi::time_converter< Bottom >::exact_type |
Exact type for this template instanciation.
Reimplemented from tool::static_base< Bottom >.
typedef struct timeval wifi::time_converter< Bottom >::pcaptime_type [read] |
Type of PCAP headers' ts
fields.
typedef uint32_t wifi::time_converter< Bottom >::hosttime_type |
Type of Prism headers' hosttime
fields.
typedef uint32_t wifi::time_converter< Bottom >::mactime_type |
Type of Prism headers' mactime
fields.
wifi::time_converter< Bottom >::time_converter | ( | const pcaptime_type & | local_pcaptime, | |
const hosttime_type & | local_hosttime, | |||
const mactime_type & | local_mactime, | |||
const tool::microseconds & | global_time | |||
) | [inline] |
Construct a converter for some given reference times.
time_converter< Bottom >::time_values wifi::time_converter< Bottom >::operator() | ( | const tool::microseconds & | global_time | ) | const [inline] |
Convert from a global microsecond count back to time values.
const static_base< Bottom >::exact_type & tool::static_base< Bottom >::exact | ( | ) | const [inline, inherited] |
Safely downcast to the exact type as a const reference.
static_base< Bottom >::exact_type & tool::static_base< Bottom >::exact | ( | ) | [inline, inherited] |
Safely downcast to the exact type as a non-const reference.
const static_base< Bottom >::exact_type * tool::static_base< Bottom >::exact_ptr | ( | ) | const [inline, inherited] |
Safely downcast to the exact type as a const pointer.
static_base< Bottom >::exact_type * tool::static_base< Bottom >::exact_ptr | ( | ) | [inline, inherited] |
Safely downcast to the exact type as a non-const pointer.