I've got a virtual clock. The clock consists of the actual clock sprite, and a hand to go over it.
I'm able to set how long the clock duration is. Say I set it to: 5 seconds. While the clock time is going, it will eventually stop until it reaches 5 seconds. Until it has reached 5 seconds, the hand will start rotating.
The hand should theoretically be at the same position it was when the clock was initialized. So..the hand should go from 0 degrees to 360 degrees...
The only problem is...I don't know how many degrees I need to rotate the clock by every frame. Like take the 5 seconds for example, how would I know how many degrees the hand needs to rotate based on those 5 seconds, until it has rotated around to 360 degrees?