Mercurial > MadButterfly
diff src/timer.c @ 50:c986e45c1e91
Unittest for animate.c
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sat, 09 Aug 2008 21:17:34 +0800 |
parents | 6270230b9248 |
children | 6749f6639924 |
line wrap: on
line diff
--- a/src/timer.c Sat Aug 09 18:34:24 2008 +0800 +++ b/src/timer.c Sat Aug 09 21:17:34 2008 +0800 @@ -83,6 +83,10 @@ return OK; } +/*! \brief Get how long to next timeout from this monent. + * + * \return 0 for having next timeout, -1 for not more timeout. + */ int mb_tman_next_timeout(mb_tman_t *tman, const mb_timeval_t *now, mb_timeval_t *tmo_after) { mb_timer_t *timer;