I have implemented following in my application.
for(i=0;!stopThroughButtons && i<totalMovements;i++){
[NSThread detachNewThreadSelector:@selector(moveNeedle) toTarget:self withObject:nil];
sleep(0.3);
}
Here sleep is a function with argument of unsigned int type.
Sleep method uses seconds to sleep.
I want to give the timing in milliseconds to sleep.
Which best alternate is available?
thanks in advance for sharing your knowledge.
sagar