Can you run a robot Routine for a specific time?

Is there a possibility to run a RoboterRoutine for a specific time? Like is there a possibility to set a Process time and let the robot run the Robot for that specific time? Because right now it just runs the routine and I don´t know how long it runs the routine. Goal would be to set a time and let the routine do that like in a while statement.
image