I am trying to get the system time in milliseconds. For this, I stated:
NSNumber *createdTimeInMilliSec; //in class declaration
and in one of my instance functions, I do:
self.createdTimeInMilliSec= ([NSDate timeIntervalSinceReferenceDate]*1000); //ERROR: incompatible type for argument 1 of 'setCreatedTimeInMilliSec:'
timeIntervalSinceReferenceDate returns to NSTimeInterval , so how do I convert it to NSNumber ? Or what am I doing wrong?
source share