My Stopwatch
Thanks to @griffpatch for the numbers and few pieces of other code I learned from him. How this stopwatch came to be: I originally had another stopwatch that used the 'wait 1 second' and the system was mad so that when the seconds reached 60, the minutes would go up and same for hours. It was working as I hoped it would until I noticed a BIG ACCURACY ISSUE. First one was the fact that, sometimes scratch would lag for a brief moment and the timer would freeze as well. Second and bigger concern - Let's say you paused the timer while the seconds are at 5.5s, when you play it again, you should only have to wait ½ a second but when you do play it, it waits an entire second. So I scratched that and made a new one that revolved around something that's always going up, the timer, and it worked well because even if it lagged the timer would still go up. That's one problem fixed, the second however was getting it to pause and it was very simple, I just made a timer variable made everything revolve around that instead and another to count the difference between the timer and timer variable. Like how long you paused the stopwatch. And there we go! A Fully Functioning Stopwatch.