Im working on a time tool that hosts all your time related needs in one place. From timers to stopwatches to all sorts of clocks this tool will have them all.
Im working on a time tool that hosts all your time related needs in one place. From timers to stopwatches to all sorts of clocks this tool will have them all.
Started outlining what the project will do and created a prototype in Python to test a few ideas!
Right now the prototype imports time to use time.sleep() for accurate counting.
It asks for you to choose timer mode( you can even right it capitalized because it then takes your input removes all spaces and makes it lowercase then it checks if it says up or down)
It asks for how long you want to time and then it stores this input in a variable called how_long.
Then it asks for confirmation to start ( you press Enter to start the timer)
It performs the task either counting down or up. If you count down it takes your time (how_long) waits one second and reduces it by 1. This goes on until how_long = 0 in which case it stops the loop and prints “Finished!”. If you count up, It makes a new variable called seconds = 1. It waits one second via time.sleep and then it adds 1 to seconds so it equals 2 this goes on until seconds = how_long in which case the loop stops and it prints (“Finished!”)
P.S In this project my goal is to write more than 70% of the code myself so devlogs will be more full and hefty.
Log in to leave a comment