# delay module | Status | Last Update | API Version | | ------ | ------ | ------ | | Active | 2019-11-14 | V1.00.00 | ## delay.ms() ### Description Block the lua thread for specified miliseconds. Background services are still running during the block, but event-loop will not be running, not recommended for event-driven programs. Resolution is 1ms, precision not guaranteed. ### Parameters | Name | Type | Range | Usage | | ------ | ------ | ------ | ------ | | <milisecond> | number| 1~2^32-1 |Specify the delay time in miliseonds| ### Return value nil ### Example call ```lua delay.ms(100) ``` ## delay.us() ### Description Block the lua thread for specified microseconds. It is busy block, background services and event-loop cannot run during the block, it's here for delays that is too small for delay.ms() to handle. ### Parameters | Name | Type | Range | Usage | | ------ | ------ | ------ | ------ | | <microsecond> | number| 1~2000 |Specify the delay time in microseconds| ### Return value nil ### Example call ```lua delay.us(100) ```