Implement duration support in sensor-connector (WIP)

[#81217518]
factor out common duration-related logic

[#81217518]

Simulation and sensor models need to have slightly different implementations of the duration logic, but they can share some common portions, extracted to LabModelerMixin here.