Added NewPrecise and changed New to be simpler
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
# bps
|
||||
|
||||
`bps` is used to keep track of rates
|
||||
`bps` is used to keep track of bandwidth rates
|
||||
|
||||
It is intended to be used as such:
|
||||
|
||||
// report on the rate over a 60 second interval, update every second
|
||||
bw, _ := New(60*time.Second, 60)
|
||||
bw, _ := New(60*time.Second)
|
||||
bw.Add(10)
|
||||
b := &bytes.Buffer{}
|
||||
b.Write([]byte("helloooooooooooooooooooooooooooooooooooooooooooooo"))
|
||||
|
||||
Reference in New Issue
Block a user