Im trying to find out how much time SpriteKit spends in update, didEvaluateActions, didSimulatePhysics, didApplyConstraints and didFinishUpdate. This would allow me to find whether its my physics, actions, constraints or graphics that are slowing my game down sometimes. Im facing a fps drop of a few frames every now and then and this would be a good way to go i think. But how can i do that? I created a timeInterval() variable but how would i start and stop it?
override func didEvaluateActions() {
let currentTime = TimeInterval() // How to start?
print("didEvaluateActions: \(currentTime)")
}
Thank you in advance.