diff --git a/AsyncDisplayKit/ASDisplayNode.mm b/AsyncDisplayKit/ASDisplayNode.mm index 804814b689..4d398708c5 100644 --- a/AsyncDisplayKit/ASDisplayNode.mm +++ b/AsyncDisplayKit/ASDisplayNode.mm @@ -284,7 +284,7 @@ static ASDisplayNodeMethodOverrides GetASDisplayNodeMethodOverrides(Class c) andHandler:^(ASDisplayNode * _Nonnull dequeuedItem, BOOL isQueueDrained) { [dequeuedItem _recursivelyTriggerDisplayAndBlock:NO]; if (isQueueDrained) { - CFAbsoluteTime timestamp = CFAbsoluteTimeGetCurrent(); + CFTimeInterval timestamp = CACurrentMediaTime(); [[NSNotificationCenter defaultCenter] postNotificationName:ASRenderingEngineDidDisplayScheduledNodesNotification object:nil userInfo:@{ASRenderingEngineDidDisplayNodesScheduledBeforeTimestamp: @(timestamp)}]; diff --git a/AsyncDisplayKit/Details/ASRangeController.mm b/AsyncDisplayKit/Details/ASRangeController.mm index 2da5de760a..90e814dcbe 100644 --- a/AsyncDisplayKit/Details/ASRangeController.mm +++ b/AsyncDisplayKit/Details/ASRangeController.mm @@ -34,7 +34,7 @@ ASLayoutRangeMode _currentRangeMode; BOOL _didUpdateCurrentRange; BOOL _didRegisterForNodeDisplayNotifications; - CFAbsoluteTime _pendingDisplayNodesTimestamp; + CFTimeInterval _pendingDisplayNodesTimestamp; #if AS_RANGECONTROLLER_LOG_UPDATE_FREQ NSUInteger _updateCountThisFrame; @@ -335,7 +335,7 @@ static UIApplicationState __ApplicationState = UIApplicationStateActive; if (nodeShouldScheduleDisplay) { [self registerForNodeDisplayNotificationsForInterfaceStateIfNeeded:selfInterfaceState]; if (_didRegisterForNodeDisplayNotifications) { - _pendingDisplayNodesTimestamp = CFAbsoluteTimeGetCurrent(); + _pendingDisplayNodesTimestamp = CACurrentMediaTime(); } } }