update for input sleep time like 0.1 can work too
update to use milliseconds for sleep time input