Q: stop execution of process for milliseconds I'm creating a Tic tac toe game, in that after click made by user automatically the cpu will respond. I want the cpu response after 0.50 seconds, the sleep() function takes too many time, I don't want that much time, is there any other way to do so?

A: use
[self performSelector:@selector(FunctionName) withObject:nil afterDelay:0.5 ];


A: usleep(500000)

A: use sleep property and give (more milliseconds)
