A simple tiny program that traks the total time you work on a laptop/desktop computer.
go mod tidy
go run .go build -o timeTracker .Log the time the program started (startTime) and the time it is terminated (endTime) and the duration it run.
Just put the program (timeTracker) in the list of startup programs in your operating system (Ubuntu in my case).
- clone the repository by
git clone https://github.com/abanoubha/timeTracker.git - go into the cloned repo. directory/folder by
cd timeTracker - build the program from source by
go mod tidy && go build -o timeTracker . - add the path to timeTracker program file in the startup (according to your operating system)
- v25.07.07
- track time by saving the initial start time and the end time into a log file
- next
- add CLI args
timeTracker -v|--viewto see the log file in terminal/stdout
- add CLI args