Currently, option 'z' in the Warp menu will sleep between readings for the number of seconds given by the user.
Firstly, this number of seconds is asked in milliseconds, even though it is actually implemented in seconds.
Secondly, we can't sleep at the resolution of milliseconds, since the current implementation of the function accepts the time to sleep in seconds.
The simplest solution is to provide an option to the user asking whether they want to sleep during the delay. If they choose yes, then ask for the delay in seconds. If not, ask for the delay in seconds, and do a busy loop for that time.
Currently, option 'z' in the Warp menu will sleep between readings for the number of seconds given by the user.
Firstly, this number of seconds is asked in milliseconds, even though it is actually implemented in seconds.
Secondly, we can't sleep at the resolution of milliseconds, since the current implementation of the function accepts the time to sleep in seconds.
The simplest solution is to provide an option to the user asking whether they want to sleep during the delay. If they choose yes, then ask for the delay in seconds. If not, ask for the delay in seconds, and do a busy loop for that time.