How to make a horizontal watch hand?

Hello, I wanted do know how i can have a square just keep going down for every minute, and once the minute reaches 59, it goes back up again? How would I do that?

Like this?

Thanks, this is what I was looking for