macOS 11+

Some Cocoa app which has to do:
1. something a few seconds later
2. some other thing repeatedly about every 0.1 second.


What is the most efficient (energy-wise) way to do this:

NSTimer (with tolerance)
NSRunLoop       performSelector:target:argument:order:modes:
NSObject                performSelector:withObject:afterDelay:
GCD             dispatch_after
something else.


Gerriet.

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to