Is there a common way to get the current time in or with milliseconds?
There is os.time(), but it only provides full seconds.
os.time()
Kevlar is correct.
An alternative to a custom DLL is Lua Alien