This is not available out of the box. Some workarounds
If it's an advanced agent, the activity called by the agent can just exit if the interval duration is not met. You can maintain that value in memory or DB.
If it's a standard agent, then it has a queue entry that it needs to process. You can queue the next entry keeping the duration in mind by updating the pyMinimumAgeForProcessing property appropriately.