我需要在几毫秒内从系统中获取当前时间.我正在使用XCode 5.1.1,我试过以下,
long timePassed_ms = ([[NSDate date] timeIntervalSince1970] * 1000);
这与iPad Retina(64-bit)
模拟器工作正常.但是当我在iPad(32 bit)
模拟器上运行它时,它返回负值.
产量
In 32bit iPad : -2147483648
In 64bit iPad : 1408416635774(This is the correct time)
有人能帮忙吗?
提前致谢!