magyarsort/simd-sort/gettime.cpp

9 lines
151 B
C++
Raw Permalink Normal View History

#include <time.h>
#include <sys/time.h>
uint32_t get_time() {
struct timeval T;
gettimeofday(&T, NULL);
return (T.tv_sec * 1000000) + T.tv_usec;
}