Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for sumDuration (0.2 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/request/webhook_duration.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package request
    
    import (
    	"context"
    	"sync"
    	"time"
    
    	"k8s.io/utils/clock"
    )
    
    func sumDuration(d1 time.Duration, d2 time.Duration) time.Duration {
    	return d1 + d2
    }
    
    func maxDuration(d1 time.Duration, d2 time.Duration) time.Duration {
    	if d1 > d2 {
    		return d1
    	}
    	return d2
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 13 22:15:37 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top