Add time_based option
[fio.git] / options.c
index 754eb81fccfe1a14f6949f30d07475ea09acc834..7a81880a200e03f3e10c3637045a94aa3bcafb37 100644 (file)
--- a/options.c
+++ b/options.c
@@ -477,6 +477,12 @@ static struct fio_option options[] = {
                .help   = "Stop workload when this amount of time has passed",
                .def    = "0",
        },
+       {
+               .name   = "time_based",
+               .type   = FIO_OPT_STR_SET,
+               .off1   = td_var_offset(time_based),
+               .help   = "Keep running until runtime/timeout is met",
+       },
        {
                .name   = "mem",
                .alias  = "iomem",