Introduce event->Duration()
This commit is contained in:
parent
1fe4bbedc0
commit
a4b0aa442a
|
@ -132,6 +132,7 @@ class Event {
|
|||
|
||||
SystemTimePoint StartTime() const { return start_time; }
|
||||
SystemTimePoint EndTime() const { return end_time; }
|
||||
TimePoint::duration Duration() const { return end_time - start_time; };
|
||||
|
||||
void AddPacket(const std::shared_ptr<ZMPacket> &p);
|
||||
void AddPacket_(const std::shared_ptr<ZMPacket> &p);
|
||||
|
|
Loading…
Reference in New Issue