playing manual alarm works

This commit is contained in:
2025-11-15 16:28:24 +01:00
parent 132a7c0788
commit 67ac6804a4
6 changed files with 87 additions and 2 deletions

10
time_utils.c Normal file
View File

@@ -0,0 +1,10 @@
#include <time.h>
void sleep_ms(int milliseconds) {
struct timespec ts = {
.tv_sec = 0,
.tv_nsec = milliseconds * 1e6,
};
nanosleep(&ts, NULL);
}