Displaying 1 result from an estimated 1 matches for "cfabsolutetimegetcurr".
2008 Sep 01
1
Porting Swfdec to Mac OS X & Timing question
...target:self argument:nil
order:100 modes:[NSArray arrayWithObject:NSDefaultRunLoopMode]];
}
else
{
NSTimeInterval fMillisecondsToNextEvent = millisecondsToNextEvent;
fMillisecondsToNextEvent /= 1000000.0; // translate to seconds so we
can use NSTimer
_private->_timeOfLastTimer = CFAbsoluteTimeGetCurrent();
_private->_nextEventTimer = [[NSTimer
scheduledTimerWithTimeInterval:fMillisecondsToNextEvent target:self
selector:@selector(triggerNextEvent:) userInfo:nil repeats:NO] retain];
}
}
- (void)triggerNextEvent:(NSTimer *)timer
{
CFAbsoluteTime timeElapsed = CFAbsoluteTimeGetCurrent(...