add ramp and change seconds to microseconds

This commit is contained in:
cubixle
2021-08-04 19:36:59 +01:00
parent cb8d79fca3
commit 4cde4072b9
6 changed files with 37 additions and 27 deletions
+6
View File
@@ -40,3 +40,9 @@ func WithRunFunc(f F) Opt {
r.RunFunc = f
}
}
func WithRampUp(seconds int) Opt {
return func(r *Runner) {
r.RampUp = seconds
}
}