10 lines
187 B
C++
10 lines
187 B
C++
#include "Jtk.h"
|
|
#include <sys/time.h>
|
|
|
|
uint64_t Jtk_UsTime()
|
|
{
|
|
struct timeval tv;
|
|
gettimeofday(&tv, nullptr);
|
|
return (uint64_t)tv.tv_sec * 1000000u + (uint64_t)tv.tv_usec;
|
|
}
|