initial commit
This commit is contained in:
commit
f3284c7436
13 files changed
+275
No files matched your search
+15
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user