Module Time

(This module is not factorio compatible.)

Module Status: Work in progress.

Usage:

    local Time = require('__eradicators-library__/erlib/factorio/Time')()
    

Functions

wait(ms) Waits until the time it up.


Functions

wait(ms)
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.

Parameters:

  • ms int milliseconds.
generated by LDoc 1.4.6 Last updated 2021-09-10 19:51:19