Displaying 1 result from an estimated 1 matches for "_timeoflasttimer".
2008 Sep 01
1
Porting Swfdec to Mac OS X & Timing question
...(scheduleNextEvent) 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 = C...