core :: Sys :: get_microtime
Uses the Unix function gettimeofday
.
# The number of microseconds elapsed since January 1, 1970
#
# Uses the Unix function `gettimeofday`.
fun get_microtime: Int `{
struct timeval val;
gettimeofday(&val, NULL);
return val.tv_sec * 1000000 + val.tv_usec;
`}
lib/core/time.nit:35,1--42,2