Skip to content

defyingdemonprogram/timer-in-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Timer Quick Start

Build & Run

Using Makefile:

make -B
./timer [time] [options]

Without Makefile:

mkdir -p build
gcc -Wall -Wextra -ggdb src/png2c.c -o build/png2c -lm
build/png2c assets/digits.png digits > src/digits.h
build/png2c assets/penger_walk_sheet.png penger > src/penger_walk_sheet.h
gcc -Wall -Wextra -ggdb src/main.c -o timer -lX11 -lXrandr -lGL -lm

If no time is provided, the timer defaults to stopwatch mode. Time format: 1h2m3s (hours, minutes, seconds). Options include starting paused or auto-exit on completion.

Usage Examples

Command Behavior
./timer Stopwatch mode
./timer 34 Countdown from 34 seconds
./timer 1h3m32s Countdown from 1h 3m 32s
./timer -e 43 Countdown from 43s, exits automatically
./timer -p 43 Countdown from 43s, starts paused

Controls

Key Action
SPACE Pause/resume (Red = paused)
+ Increase text size
- Decrease text size
F11 Toggle full-screen

Demo

timer-demo

References

About

timer in c

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •