Add sampling time machinery