To execute a piece of code after some time we can use the sleep function, in this method we can set a time ….
static void sleep(Args _arg)
{
int seconds = 10;
int i;
;
i = sleep(seconds*1000);
print “job slept for ” + int2str(i/1000) + ” seconds”;
pause;
}
No comments:
Post a Comment