of     1   

Flurite
#59722277Sunday, December 18, 2011 1:14 AM GMT

So in Rbx.lua, it's wait(), what is the synonym to this in C++? I'm trying to make a timer, and I have to wait 1 second in my loop as you can probably imagine.
myrkos
#59722604Sunday, December 18, 2011 1:19 AM GMT

sleep(); Though it isn't always accurate.
Flurite
#59722677Sunday, December 18, 2011 1:20 AM GMT

Hmm okay, any other easy ways? Also, what library is that function in?
Armachedes
#59722725Sunday, December 18, 2011 1:21 AM GMT

I'd use clock(), look up its documentation.
myrkos
#59723211Sunday, December 18, 2011 1:29 AM GMT

clock() is so volatile; it sucks really. If you only want seconds, then use time().
Waterlimon
#59744300Sunday, December 18, 2011 11:44 AM GMT

Or you could use some fancy thing to get the current time. I dont think you really pause the program in "real" programs, you just run an empty loop or something until the time has passed?
TheMyrco
#59744541Sunday, December 18, 2011 12:09 PM GMT

Aren't those functions in the 'time(.h)' lib? ~Myrco; Music lover, nederlands/dutch and a scripter
Flurite
#59744962Sunday, December 18, 2011 12:50 PM GMT

@radio fanciness is stupid. simple and get down to the point. thats how i own noobs in sc2, you know baneling push and then kaboom, victory.

    of     1