I have the following code:
-(void)update:(ccTime)delta {
totalTime += delta * 10;
currentTime = (int)totalTime;
if (myTime < currentTime) {
myTime = currentTime;
[timeLabel setString:[NSString stringWithFormat:@"Time: \n%i:%02i:%02i.%i", myTime/36000,(myTime/600)%60,(myTime/10)%60,myTime%10]];
}
}
This code is working good, is there a way to add milliseconds though? And if so, could I have it to the thousandths place: 1:23:45.678