* NAME: timer->abs() * DESCRIPTION: return the absolute value of a timer */
| 77 | * DESCRIPTION: return the absolute value of a timer |
| 78 | */ |
| 79 | mad_timer_t mad_timer_abs(mad_timer_t timer) |
| 80 | { |
| 81 | if (timer.seconds < 0) |
| 82 | mad_timer_negate(&timer); |
| 83 | |
| 84 | return timer; |
| 85 | } |
| 86 | |
| 87 | /* |
| 88 | * NAME: reduce_timer() |
no test coverage detected