I have the following piece of code…
double time = [[NSDate date] timeIntervalSince1970];
double startTime = time;
double endTime = time;
When I run the code, the startTime and endTime are not even close to each other. For example, the startTime is 4378480 and the endTime is 1883506224.
Why is there such a difference between the 2 time values?
Can you link the code you are using to output the values, remember you need to use %f not %d in the formatter. The above should be equivalent as both are pointing to the same value