https://github.com/bayars/timer
Basic Timer Program
https://github.com/bayars/timer
chrono cpp gtest timer
Last synced: 20 days ago
JSON representation
Basic Timer Program
- Host: GitHub
- URL: https://github.com/bayars/timer
- Owner: bayars
- License: mit
- Created: 2020-05-24T15:51:38.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-17T19:50:17.000Z (almost 6 years ago)
- Last Synced: 2025-12-26T18:47:49.400Z (6 months ago)
- Topics: chrono, cpp, gtest, timer
- Language: C++
- Homepage:
- Size: 831 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Timer
The program is a countdown program. Basically, takes a time with a special format and starts countdown with seconds.
I used chrono, ctime, iomanip and thread libraries for this program.
### Installation
##### With g++
Program compile just with that;
```
g++ -Wall -pthread -std=c++2a main.cpp src/countdown.cpp -o Timer
```
You can run with that command;
```
./Timer
```
##### With cmake
First you need to get project. If you haven't git program, you have to install on your system.
```
git clone https://github.com/rection/Timer
```
After that step, you can run this command.
```
make timer
```
And you have a Timer program you can run with
```
./Timer
```
### Usage
Program running just in command line right now. I will set a graphical interface with QT5. Command line input like that;
```
1s => 1 second
5s => 5 second
1m => 1 minute
5m => 5 minute
1h => 1 hours
5h => 5 hours
```
### Issues
+ Add command line parser for takes verbose output limit and on that way, I can add description and usage.
+ Set QT5