1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 19:17:38 +08:00
MiraiGo/client/statistics.go

21 lines
392 B
Go

package client
import (
"go.uber.org/atomic"
)
type Statistics struct {
PacketReceived atomic.Uint64
PacketSent atomic.Uint64
PacketLost atomic.Uint64
MessageReceived atomic.Uint64
MessageSent atomic.Uint64
LastMessageTime atomic.Int64
DisconnectTimes atomic.Uint32
LostTimes atomic.Uint32
}
func (c *QQClient) GetStatistics() *Statistics {
return &c.stat
}