Using settimeout with progress bar

Using settimeout with progress bar

Hello,

Im using a settimeout to resubmit a form.

Id like to be able to use a progress bar showing the time until the next resubmit.

Does anyone know of an example?

Thank You