const refreshPerSecond … const maxBudget … type timeBudget … type timeBudgetImpl … func newTimeBudget() timeBudget { … } func (t *timeBudgetImpl) takeAvailable() time.Duration { … } func (t *timeBudgetImpl) returnUnused(unused time.Duration) { … }
const refreshPerSecond … const maxBudget … type timeBudget … type timeBudgetImpl … func newTimeBudget() timeBudget { … } func (t *timeBudgetImpl) takeAvailable() time.Duration { … } func (t *timeBudgetImpl) returnUnused(unused time.Duration) { … }