initial commit

This commit is contained in:
wt committed 2025-11-20 18:15:23 +07:00
commit f3284c7436
13 files changed
+275

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
#include "utils.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
void error(const char *msg) {
perror(msg);
exit(1);
}
double get_time_ms() {
struct timeval tv;
gettimeofday(&tv, NULL);
return (tv.tv_sec * 1000.0) + (tv.tv_usec / 1000.0);
}