ID:155028
 
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)
If you ever have questions on procs BYOND provides you, utilize the DM reference.

Excerpt:

"Format:
sleep(Delay)
Args:
Delay: The amount of time to sleep, in 1/10 seconds."
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

sleep(ticks2sec(5))
In response to ANiChowy
Ohh, i get it now :D thanks!