Is there a way to get the monotonic time with default lua api?
There is no monotonic time function in the standard C library, so no. Interfacing with a monotonic clock is system dependent (POSIX: clock_gettime, Windows: GetTickCount64, or QueryPerformanceCounter if you need microsecond precision).
--