util.time

Provides low-level high precision timestamps.

Reference

These all return floating point numbers with sub-second precision.

time.now()

Returns current wall clock time.

Available since Prosody 0.10.

time.monotonic()

A number guaranteed to always increase monotonically, but unlikely to have any relation to the current wall-time.

Available since Prosody 0.11.