Sign in to follow this  
Followers 0
Knight

_SleepSec

2 posts in this topic

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

Share this post


Link to post
Share on other sites



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
Yea, but it works. If you can make the code easier then what the heck, eh!

Cheers.. :P

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0