Convert a time_tracker
microsecond count to various PCAP and PHY fields.
More...
#include <wipal/wifi/time_converter.hh>
Classes | |
struct | time_values |
Hold time_converter 's conversion results. More... | |
Public Types | |
typedef struct timeval | pcap_time_type |
typedef PhyHeaderType::time_type | phy_time_type |
Static hierarchies related types | |
typedef HIDDEN | exact_type |
typedef tool::static_base < exact_type > | super_type |
Public Member Functions | |
time_converter (const pcap_time_type &local_pcap_time, const phy_time_type &local_phy_time, 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 () |
Convert a time_tracker
microsecond count to various PCAP and PHY 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 wpl::wifi::time_converter< PhyHeaderType, Bottom >::exact_type |
Exact type for this template instanciation.
Reimplemented from wpl::tool::static_base< Bottom >.