Added NewPrecise and changed New to be simpler

This commit is contained in:
sm
2015-10-04 15:47:24 -07:00
parent fd030fd6b2
commit d8a8452961
3 changed files with 34 additions and 20 deletions
+2 -2
View File
@@ -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"))