Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 625 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 625 Bytes

pi-clock

A simple program to display the current time using powers of π.

Made using Windows APIs because I can't be bothered to make a multiplatform shitpost.

By default it runs for 50 seconds, but you can change this by editing the number 50000 in line 154:

time_t now = time(0);

    while (elapsed_time_ms < 50000) { <------- CHANGE THIS NUMBER
        elapsed_time_ms = (clock() - start_time) * 1000 / CLOCKS_PER_SEC; // Calculate elapsed time in milliseconds

Video of the code in action:

git.mp4