eagler-teavm-fork/samples/benchmark/support.c

6 lines
141 B
C
Raw Normal View History

static int64_t currentTimeNano() {
struct timespec time;
clock_gettime(CLOCK_REALTIME, &time);
return (int64_t) time.tv_nsec;
}