A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
delay-jitter-estimation.h
Go to the documentation of this file.
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:
55  int64x64_t m_jitter;
57 };
58 
59 } // namespace ns3
60 
61 #endif /* DELAY_JITTER_ESTIMATION_H */