func (c *Counter) KibiBytesSent() float64 {
	return float64(c.BytesSent()) / 1024
}
KibiBytesSent returns the KiB sent so far.
package bytecounter
import "github.com/ooni/probe-engine/atomicx"
type Counter struct {
	Received *atomicx.Int64
	Sent     *atomicx.Int64
}
func New() *Counter {
	return &Counter{Received: atomicx.NewInt64(), Sent: atomicx.NewInt64()}
}
func (c *Counter) CountBytesSent(count int) {
	c.Sent.Add(int64(count))
}
func (c *Counter) CountKibiBytesSent(count float64) {
	c.Sent.Add(int64(1024 * count))
}
func (c *Counter) BytesSent() int64 {
	return c.Sent.Load()
}