I need to get the current time from system in milliseconds. I'm using XCode 5.1.1 and I tried with the following,
long timePassed_ms = ([[NSDate date] timeIntervalSince1970] * 1000);
This is working fine with iPad Retina(64-bit)
emulator. But when I'm running this on iPad(32 bit)
emulator, it returns minus value.
Output
In 32bit iPad : -2147483648
In 64bit iPad : 1408416635774(This is the correct time)
Can anyone help with this?
Thanks in Advance!