Skip to content

A simple program to display the current time using powers of pi

License

Notifications You must be signed in to change notification settings

complex-hub/pi-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

About

A simple program to display the current time using powers of pi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages