Skip to content

Open source AI coding agent. Designed for large projects and real world tasks.

203 B
Raw Blame
package utils

import (
	"time"
)

func EnsureMinDuration(start time.Time, minDuration time.Duration) {
	elapsed := time.Since(start)
	if elapsed < minDuration {
		time.Sleep(minDuration - elapsed)
	}
}