(This module is not factorio compatible.)
Module Status: Work in progress.
local Time = require('__eradicators-library__/erlib/factorio/Time')()
|wait(ms)||Waits until the time it up.|
Waits until the time it up.
Uses os.clock() outside of factorio.
Inside of factorio uses a busy wait loop to approximate the wait time. The approximation is based on a 2.35Ghz CPU. Depending on your CPU speed the actually waited time will be off by a factor of 2-3.
Note: Inside of factorio only waits if flag.IS_DEV_MODE is true.
- ms int milliseconds.