aboutsummaryrefslogtreecommitdiff
path: root/util.c
blob: 6887ce915e2b17c3c98cf4e834c96d0c56adb46b (plain)
1
2
3
4
5
6
7
8
9
#include <sys/time.h>
#include "util.h"


i64 make_timestamp(void){
	struct timeval tv;
	gettimeofday(&tv,NULL);
	return (i64)tv.tv_sec*1000000+tv.tv_usec;
}