zielony12 / cpp-timer

Simple timer written in C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cpp-timer

Simple timer written in C++

build from source

git clone https://github.com/zielony12/cpp-timer.git

cd cpp-timer

make or for arch based operating systems: makepkg -si

usage

Sample:

#include <timer/Countdown.hpp>	// include the timer library

int main() {
	tmr::Countdown ct1("Countdown Timer 1", 0, 1, 30); // new instance of Countdown with caption "Countdown Timer 1", and time 1 min, 30 secs
	ct1.couldShowTime = false; // disable displaying the time. Enabled by default
	ct1.start(); // run the ct1
	return 0;
}

Compiling: g++ -c main.cpp; Linking: g++ main.o -o timer-app -ltimer

About

Simple timer written in C++

License:GNU General Public License v3.0


Languages

Language:C++ 47.3%Language:Makefile 34.4%Language:Shell 18.3%