Quantcast
Channel: Getting time elapsed in Objective-C - Stack Overflow
Viewing all articles
Browse latest Browse all 8

Answer by Marco Lazzeri for Getting time elapsed in Objective-C

$
0
0

Use the timeIntervalSinceDate method

NSTimeInterval secondsElapsed = [secondDate timeIntervalSinceDate:firstDate];

NSTimeInterval is just a double, define in NSDate like this:

typedef double NSTimeInterval;

Viewing all articles
Browse latest Browse all 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>