Loading...
#include "misc.h"

#include <inttypes.h>
#include <ctime>
#include <sys/timeb.h>

unsigned long long getMilliTime () {
    struct timeb timebuffer;
    ftime(&timebuffer);
    return timebuffer.time * 1000 + timebuffer.millitm;
}