New time api

This commit is contained in:
Miek Gieben 2011-12-18 21:01:32 +01:00
parent 1bd1784403
commit e2b080d1b1
1 changed files with 2 additions and 2 deletions

View File

@ -211,14 +211,14 @@ func TestZoneParsing(t *testing.T) {
}
defer f.Close()
to := make(chan Token)
start := time.Now().Nanosecond()
start := time.Now().UnixNano()
go ParseZone(f, to)
var i int
for x := range to {
t.Logf("%s\n", x.Rr)
i++
}
delta := time.Now().Nanosecond() - start
delta := time.Now().UnixNano() - start
t.Logf("%d RRs parsed in %.2f s (%.2f RR/s)", i, float32(delta)/1e9, float32(i)/(float32(delta)/1e9))
}