- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkTickerReset (0.76 sec)
-
src/time/tick_test.go
} } func BenchmarkTicker(b *testing.B) { benchmark(b, func(pb *testing.PB) { ticker := NewTicker(Nanosecond) for pb.Next() { <-ticker.C } ticker.Stop() }) } func BenchmarkTickerReset(b *testing.B) { benchmark(b, func(pb *testing.PB) { ticker := NewTicker(Nanosecond) for pb.Next() { ticker.Reset(Nanosecond * 2) } ticker.Stop() }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:10:37 UTC 2024 - 14.7K bytes - Viewed (0)