mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
6 lines
141 B
C
6 lines
141 B
C
static int64_t currentTimeNano() {
|
|
struct timespec time;
|
|
clock_gettime(CLOCK_REALTIME, &time);
|
|
return (int64_t) time.tv_nsec;
|
|
}
|