search for: timeelapsed

Displaying 1 result from an estimated 1 matches for "timeelapsed".

Did you mean: time_elapsed
2008 Sep 01
1
Porting Swfdec to Mac OS X & Timing question
...timeOfLastTimer = CFAbsoluteTimeGetCurrent(); _private->_nextEventTimer = [[NSTimer scheduledTimerWithTimeInterval:fMillisecondsToNextEvent target:self selector:@selector(triggerNextEvent:) userInfo:nil repeats:NO] retain]; } } - (void)triggerNextEvent:(NSTimer *)timer { CFAbsoluteTime timeElapsed = CFAbsoluteTimeGetCurrent()-_private- >_timeOfLastTimer; swfdec_player_advance(_private->_player, timeElapsed*1000000.0); if (swfdec_player_is_initialized(_private->_player)) [self setNeedsDisplay:YES]; [self scheduleNextEvent]; } Here's what the code does: a. When -schedul...