A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
delay-jitter-estimation.h
1 #ifndef DELAY_JITTER_ESTIMATION_H
2 #define DELAY_JITTER_ESTIMATION_H
3 
4 #include "ns3/nstime.h"
5 #include "ns3/packet.h"
6 
7 namespace ns3 {
8 
16 {
17 public:
19 
30  static void PrepareTx (Ptr<const Packet> packet);
38  void RecordRx (Ptr<const Packet> packet);
39 
43  Time GetLastDelay (void) const;
50  uint64_t GetLastJitter (void) const;
51 
52 private:
53  Time m_previousRx;
54  Time m_previousRxTx;
55  int64x64_t m_jitter;
56  Time m_delay;
57 };
58 
59 } // namespace ns3
60 
61 #endif /* DELAY_JITTER_ESTIMATION_H */
keep track of time unit.
Definition: nstime.h:149
void RecordRx(Ptr< const Packet > packet)
static void PrepareTx(Ptr< const Packet > packet)
quick and dirty delay and jitter estimation