Hi I am doing mathematical operations with NSTimeInterval(which is double type) with one long variable
NSTimeInterval timeDifference =[endDateTime timeIntervalSinceDate:startDateTime];
long duration= timeDifference-[dauseDuration longValue];
NSString *eventDuration=[NSString stringWithFormat:@"%ld",duration];
NSLog(@"Duration : %@",eventDuration);
where I am getting 1 second difference in result,can any one know's thanks in advance !!!