os

os.clock(): number

Returns the number of seconds of CPU time for the program. It's typical use is to benchmark a piece of code.

os.time(): number

Returns the current number of seconds since Jan 1, 1970 in the UTC timezone.
Last modified 1mo ago