func manageThrottle()

in sandbox/ho11y/main.go [315:323]


func manageThrottle() {
	const throttlePeriodMilliseconds = 500
	throttlePeriod := time.Duration(throttlePeriodMilliseconds * time.Millisecond)
	for {
		tpsValue = float64(invokesInPeriod) / throttlePeriod.Seconds()
		invokesInPeriod = 0
		time.Sleep(throttlePeriod)
	}
}