Jump to content

Recommended Posts

Posted

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
Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...