Big Chungus
aleksey.tomin
val nowMilleeconds = memScoped { val timeVal = alloc<timeval>() gettimeofday(timeVal.ptr, null) val sec = timeVal.tv_sec val usec = timeVal.tv_usec (sec * 1_000L) + (usec / 1_000L) }
val nowMilleeconds = memScoped { val timeVal = alloc<timeval>() mingw_gettimeofday(timeVal.ptr, null) // mingw: doesn't expose gettimeofday, but mingw_gettimeofday val sec = timeVal.tv_sec val usec = timeVal.tv_usec (sec * 1_000L) + (usec / 1_000L) }
kotlin.system.getTimeMillis()
only delta between two subsequent calls makes sense.
Erik Christensen
A modern programming language that makes developers happier.