- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkNowUnixNano (0.22 sec)
-
src/time/time_test.go
t.Errorf("Time{} and Time{}.UTC() behave differently for %s", tt.name) } } } func BenchmarkNow(b *testing.B) { for i := 0; i < b.N; i++ { t = Now() } } func BenchmarkNowUnixNano(b *testing.B) { for i := 0; i < b.N; i++ { u = Now().UnixNano() } } func BenchmarkNowUnixMilli(b *testing.B) { for i := 0; i < b.N; i++ { u = Now().UnixMilli() } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:13:47 UTC 2024 - 56.5K bytes - Viewed (0)