lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



On Sat, Apr 11, 2020 at 12:29 PM Italo Maia <italo.maia@gmail.com> wrote:
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).

--