im new to programming so forgive my dumb questions i bring to you guys now and then. but i guess asking dumb questions is how you learn.
Im confused about the Sleep proc time...Like how long is sleep(500) can someone explain the delay time to me please?
Thank you.
Edit:
I think i just figured it out..
is it like seconds. like say i want it to sleep for 30 seconds i would make the proc sleep(30)
or if i wanted it to sleep for one min sleep(60)
ID:155028
Oct 6 2011, 3:42 pm
|
|
In response to ANiChowy
|
|
Thank you for your reply.
I read the ref and was still confused about the delay... Ill figure it out. Thanks again |
In response to NotS
|
|
It is 1/10th of a second. Which, in BYOND, is called a tick.
So sleep(10) would pause for 1 second. You could always do something like this if you're not sure.. #define ticks2sec(num) num*10 |
In response to ANiChowy
|
|
Ohh, i get it now :D thanks!
|
Excerpt:
"Format:
sleep(Delay)
Args:
Delay: The amount of time to sleep, in 1/10 seconds."