make SentPacketHandler compute the delta between sent and ack time

This commit is contained in:
Lucas Clemente
2016-04-28 18:52:12 +02:00
parent c07ad6ab76
commit ac1affb940
5 changed files with 56 additions and 18 deletions

View File

@@ -1,6 +1,8 @@
package ackhandler
import (
"time"
"github.com/lucas-clemente/quic-go/frames"
"github.com/lucas-clemente/quic-go/protocol"
)
@@ -14,6 +16,8 @@ type Packet struct {
MissingReports uint8
Retransmitted bool // has this Packet ever been retransmitted
sendTime time.Time
}
func (p *Packet) GetStreamFramesForRetransmission() []*frames.StreamFrame {