mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-25 04:11:46 +00:00
replace time.Now().Sub with time.Since
This commit is contained in:
@@ -828,7 +828,7 @@ func BenchmarkAuthorization(b *testing.B) {
|
||||
},
|
||||
},
|
||||
})
|
||||
diff := time.Now().Sub(start)
|
||||
diff := time.Since(start)
|
||||
atomic.AddInt64(&writes, 1)
|
||||
switch {
|
||||
case diff < time.Millisecond:
|
||||
|
Reference in New Issue
Block a user