- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for 03000000ss (0.09 sec)
-
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/seat_seconds_test.go
{ss: SeatSeconds(1), expectFloat: 1.0 / ssScale, expectStr: "0.00000001ss"}, {ss: SeatSeconds(ssScale - 1), expectFloat: (ssScale - 1) / ssScale, expectStr: "0.99999999ss"}, {ss: 0, expectFloat: 0, expectStr: "0.00000000ss"}, {ss: SeatsTimesDuration(1, time.Second), expectFloat: 1, expectStr: "1.00000000ss"}, {ss: SeatsTimesDuration(123, 100*time.Millisecond), expectFloat: 12.3, expectStr: "12.30000000ss"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 29 20:20:16 UTC 2021 - 2.5K bytes - Viewed (0) -
src/time/time_test.go
{"2.2ms", 2200 * Microsecond}, {"3.3s", 3300 * Millisecond}, {"4m5s", 4*Minute + 5*Second}, {"4m5.001s", 4*Minute + 5001*Millisecond}, {"5h6m7.001s", 5*Hour + 6*Minute + 7001*Millisecond}, {"8m0.000000001s", 8*Minute + 1*Nanosecond}, {"2562047h47m16.854775807s", 1<<63 - 1}, {"-2562047h47m16.854775808s", -1 << 63}, } func TestDurationString(t *testing.T) { for _, tt := range durationTests {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:13:47 UTC 2024 - 56.5K bytes - Viewed (0) -
src/time/time.go
} // format formats the representation of d into the end of buf and // returns the offset of the first character. func (d Duration) format(buf *[32]byte) int { // Largest time is 2540400h10m10.000000000s w := len(buf) u := uint64(d) neg := d < 0 if neg { u = -u } if u < uint64(Second) { // Special case: if duration is smaller than a second, // use smaller units, like 1.2ms
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 50.7K bytes - Viewed (0)