Simple stopwatch code made in the balta.io's c# introduction course
The entry point of the program. It displays a "Hello World!" message and then calls the Menu method.
is a method that displays a menu for the user to choose between seconds (s), minutes (m), or exiting (0s). It reads the user's input; parses it to determine the time and type; calls the PreStart method with the calculated time.
This method displays countdown messages ("Ready...", "Set...", "Go!"). With a delay of one second each using Thread.Sleep. After the "Go!" message, it calls the Start method to initiate the actual stopwatch countdown.
This method performs the countdown. It continuously clears the console, updates the current time, displays it on the screen, and waits for one second using Thread.Sleep. The loop continues until the current time matches the desired time.
The code is overall functional for a basic project. However, there are a few things to improve: