The optional duration over the course of which the measures need to be sampled. null implies infinite by default.
null
Duration? duration;