Item cooldowns reset when the world is reloaded
With custom food items, when you leave and rejoin the world, any cooldown you have set for it is reset. I have attached an example pack with a simple food item and a cooldown of 30 seconds. If you leave the world and rejoin again, the cooldown will be gone regardless of how long it's been. It seems to be very consistent.