Working through timed event apis on mac.