Files
smartdns/util.c
2018-05-19 22:48:14 +08:00

11 lines
192 B
C

#include "util.h"
#include <time.h>
unsigned long get_tick_count()
{
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
return (ts.tv_sec * 1000 + ts.tv_nsec / 1000000);
}