Knight Posted September 16, 2005 Share Posted September 16, 2005 This is a semi-useless function I whipped up in about 13 seconds. It works the same as sleep except instead of identifying the time in milliseconds it uses seconds. The reason I made it was because I created a script in where people had to configure some sleep times manually, and rather then just multiplying everything by 1000, I could do it quicker this way. I am not expecting anyone to need it, just thought I would throw it up here ;Examples _SleepSec(10) _SleepSec(10.545313215) ;Function Func _SleepSec($seconds) Sleep($seconds * 1000) EndFunc Link to comment Share on other sites More sharing options...
busysignal Posted September 17, 2005 Share Posted September 17, 2005 This is a semi-useless function I whipped up in about 13 seconds. It works the same as sleep except instead of identifying the time in milliseconds it uses seconds.The reason I made it was because I created a script in where people had to configure some sleep times manually, and rather then just multiplying everything by 1000, I could do it quicker this way.I am not expecting anyone to need it, just thought I would throw it up here ;Examples _SleepSec(10) _SleepSec(10.545313215) ;Function Func _SleepSec($seconds) Sleep($seconds * 1000) EndFuncYea, but it works. If you can make the code easier then what the heck, eh!Cheers.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now