lib: Create new timer library.
authorEthan Jackson <ethan@nicira.com>
Thu, 31 Mar 2011 20:46:04 +0000 (13:46 -0700)
committerEthan Jackson <ethan@nicira.com>
Thu, 31 Mar 2011 23:17:40 +0000 (16:17 -0700)
commit8650b075065d03db50dac26f33bb0ec3c485d044
treee594abf1d5f7044d1f19cb2e6dfba9543bc506f5
parent6fcdfcd065750940efd97b90f9746601d5b3f965
lib: Create new timer library.

Scattered throughout the code base we use long integers to
implement timers.  When the result of timer_msec() is greater than
the time stored, we preform some action.

This commit creates a new timer library intended to replace these
manually managed timers.  Code using the timer library will be more
obviously correct, and more consistent with other code using the
library.
lib/automake.mk
lib/timer.c [new file with mode: 0644]
lib/timer.h [new file with mode: 0644]