Introduce event->Duration()

This commit is contained in:
Isaac Connor 2022-01-14 14:35:26 -05:00
parent 1fe4bbedc0
commit a4b0aa442a
1 changed files with 1 additions and 0 deletions

View File

@ -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);