lib/timer.c
/* Returns the number of milliseconds until 'timer' expires. */
Returns the number of milliseconds until 'timer' expires.
Returns the number of milliseconds until ' timer ' expires .
long long int
timer_msecs_until_expired(const struct timer *timer)
{
    switch (timer->t) {
    case LLONG_MAX: return LLONG_MAX;
    case LLONG_MIN: return 0;
    default: return timer->t - time_msec();
    }
}
long long int timer_msecs_until_expired ( const struct timer * timer ) { switch ( timer -> t ) { case LLONG_MAX : return LLONG_MAX ; case LLONG_MIN : return 0 ; default : return timer -> t - time_msec ( ) ; } }
Returns the number of milliseconds until 'timer' expires.
Returns the number of milliseconds until ' timer ' expires .