I\'ve tried to google around but I still can\'t find the best answer.
All I want is very simple, I just want to get the current time in milliseconds.
How can
To get only milliseconds
NSDate* date = [NSDate date];
NSDateFormatter* formatter = [[[NSDateFormatter alloc] init] autorelease];
[formatter setDateFormat:@"ss"];
NSString* str = [formatter stringFromDate:date];
float seconds = str.intValue;
float miliSeconds = seconds / 1000; // HERE is your answer
If you want to get full time format replace
[formatter setDateFormat:@"hh:mm:ss"];