veronica-silva / stopWatch

Stopwatch feito em .Net core pelo curso do balta.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stopWatch

Simple stopwatch code made in the balta.io's c# introduction course

The project

Main

The entry point of the program. It displays a "Hello World!" message and then calls the Menu method.

Menu:

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.

PreStart:

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.

Start:

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:

About

Stopwatch feito em .Net core pelo curso do balta.io


Languages

Language:C# 100.0%