Tired of clunky GUI timers or setting alarms that are just too rigid? Meet Tick-Tock Timer! 🎉 This little gem is a minimalist, super-efficient command-line timer built in C. It's perfect for tracking your work sprints, coffee breaks, or just seeing how long that compilation really takes! 🚀
- Blazingly Fast: Written in pure C, it's incredibly lightweight and performant. ⚡
- Super Simple: No complex commands, just
timer
and you're off! 🏃♂️ - Real-time Display: Watch the seconds tick by right in your terminal. ⏳
- Instant Control: Press
q
orQ
to quit the instantly or pressc
to mark as complete and Quit. 🛑 - Log Your Tasks: Add a title to your task and create logs in give file 📦
See it in action – it's as easy as pie! 🥧
Getting Tick-Tock Timer up and running is a breeze! Just follow these steps:
-
Clone the Repository: Let's grab a copy of the project. We only need the latest version, so
--depth 1
is perfect! ⬇️git clone --depth 1 https://github.com/ManojPanda3/timer.git
-
Navigate into the Directory: Time to jump into the project folder. 📁
cd timer
-
Build the Executable: This project uses a
Makefile
for super easy compilation.gcc
will work its magic! ✨make
-
Install to Your Local Binaries: To make
timer
accessible from anywhere in your terminal, copy it to a directory included in yourPATH
. We highly recommend~/.local/bin/
as a standard location for user-specific executables! 💡sudo cp ./build/timer ~/.local/bin/
You might need
sudo
depending on your user permissions, but~/.local/bin/
should typically be writable without it. -
Ensure
~/.local/bin
is in Your PATH (if it's not already): This crucial step ensures your shell knows where to find thetimer
command. Add the following line to your shell's configuration file (e.g.,~/.bashrc
for Bash or~/.zshrc
for Zsh):export PATH=\"$HOME/.local/bin:$PATH\"
Then, apply the changes by sourcing your shell configuration file:
source ~/.bashrc # Or source ~/.zshrc if you use Zsh
You only need to do this once! Your terminal will remember it for future sessions! 🔄
Once installed, using Tick-Tock Timer is as simple as it gets!
Just type timer
in your terminal and hit Enter for no titled task:
timer
timer
with title
timer -t "My Task1"
timer
with log file
timer -t "My Task1" -f "~/myproject.log"
The timer will start counting from 00:00:00
. To stop it and see the final duration, just press Ctrl+C
. 🛑
Got an idea to make Tick-Tock Timer even better? Found a bug? We'd love to see your contributions! Here's how you can help make this project shine brighter: ✨
-
Fork the repository on GitHub.
-
Clone your forked repository to your local machine.
-
Create a new branch for your feature or bugfix:
git checkout -b feature/your-awesome-feature
(Replace
your-awesome-feature
with something descriptive!) -
Make your changes and commit them with a clear, concise message:
git commit -m 'feat: Add a concise description of your changes' # Or 'fix:', 'chore:', etc.
-
Push your branch to your forked repository:
git push origin feature/your-awesome-feature
-
Open a Pull Request to the
main
branch of this repository.
Your contributions make the open-source world a better place! Thank you for considering! ❤️
This project is open-source and distributed under the MIT License. Feel free to use, modify, and distribute it as you see fit! 💖