Llenar una barra de progreso en un tiempo determinado

Hello everyone, I have a problem I want to make a progress bar that fills up in a certain time, for example that in 1 minute the bar is already full and a function can be executed I am very grateful if you solve this little problem