- Create the menu with the default time in a global variable.
- use set_task() with a 1.0 interval & reduce the time variable by 1.
- Destroy & recreate the menu again until the time var is 0.
There are several plugins that use countdowns in menu's.
Try looking at the code of those.