How to compare two times in milliseconds precision?

Posted by Marcos Issler on Stack Overflow See other posts from Stack Overflow or by Marcos Issler
Published on 2010-04-23T16:10:59Z Indexed on 2010/04/23 16:13 UTC
Read the original article Hit count: 491

Filed under:
|
|
|
|

I have a subtitle text file that works with standart srt format 00:00:00,000 Hour, minutes, seconds, milliseconds.

I want to create a timer to update the subtitle screen and check the current time to know what subtitle show on screen.

Which is the best to use? NSTimeInterval, NSDate? I think the best is to convert all to times to milliseconds number and compare. But NSTimeInterval works with seconds, not milliseconds.

Some clue?

Marcos

© Stack Overflow or respective owner

Related posts about cocoa-touch

Related posts about ipod