summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/thread.c2
-rw-r--r--lib/thread.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/thread.c b/lib/thread.c
index 9c3ee823..cb513323 100644
--- a/lib/thread.c
+++ b/lib/thread.c
@@ -102,7 +102,7 @@ timeval_cmp (struct timeval a, struct timeval b)
? a.tv_usec - b.tv_usec : a.tv_sec - b.tv_sec);
}
-static unsigned long
+unsigned long
timeval_elapsed (struct timeval a, struct timeval b)
{
return (((a.tv_sec - b.tv_sec) * TIMER_SECOND_MICRO)
diff --git a/lib/thread.h b/lib/thread.h
index 9743a22d..4856dec7 100644
--- a/lib/thread.h
+++ b/lib/thread.h
@@ -211,6 +211,7 @@ extern struct thread *thread_fetch (struct thread_master *, struct thread *);
extern void thread_call (struct thread *);
extern unsigned long thread_timer_remain_second (struct thread *);
extern int thread_should_yield (struct thread *);
+extern unsigned long timeval_elapsed (struct timeval a, struct timeval b);
/* Internal libzebra exports */
extern void thread_getrusage (RUSAGE_T *);