MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / mad_timer_add

Function mad_timer_add

modules/data/mp3/libmad/mad_timer.c:230–237  ·  view source on GitHub ↗

* NAME: timer->add() * DESCRIPTION: add one timer to another */

Source from the content-addressed store, hash-verified

228 * DESCRIPTION: add one timer to another
229 */
230void mad_timer_add(mad_timer_t *timer, mad_timer_t incr)
231{
232 timer->seconds += incr.seconds;
233 timer->fraction += incr.fraction;
234
235 if (timer->fraction >= MAD_TIMER_RESOLUTION)
236 reduce_timer(timer);
237}
238
239/*
240 * NAME: timer->multiply()

Callers 1

mad_timer_multiplyFunction · 0.85

Calls 1

reduce_timerFunction · 0.85

Tested by

no test coverage detected