#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
+#include <sys/time.h>
-#include "util.h"
+#include "osd.h"
void __attribute__((noreturn)) __attribute__((format(printf,1,2)))
die(char *fmt, ...)
die("Failed to allocate %d bytes of memory", size);
return p;
}
+
+timestamp_t
+get_current_time(void)
+{
+ struct timeval tv;
+ gettimeofday(&tv, NULL);
+ return (timestamp_t) tv.tv_sec * 1000 + tv.tv_usec / 1000;
+}