CMTime seconds output

arik picture arik · Feb 19, 2012 · Viewed 38.5k times · Source

This may seem ridiculous, but how can I output the seconds of CMTime to the console in Objective-C? I simply need the value divided by the timescale and then somehow see it in the console.

Answer

rob mayoff picture rob mayoff · Feb 19, 2012
NSLog(@"seconds = %f", CMTimeGetSeconds(cmTime));