diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2016-07-28 17:23:40 +0200 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetwroks.com> | 2016-07-28 07:27:47 -0400 |
| commit | 16f5949d44f7d9bec5b0402845754e9aca9b6f32 (patch) | |
| tree | d5d2ee2ed7fa65c4842d6f54a380dbce40d8f09e /lib/thread.h | |
| parent | 2176b7c3d248b16b63857582967eecfa4765dcc8 (diff) | |
lib: remove a whole bunch of unused time stuff
QUAGGA_CLK_REALTIME and QUAGGA_CLK_REALTIME_STABILISED aren't used
anywhere in the code. Remove. The enum is kept to avoid having to
change the calls everywhere.
Same applies to the workaround code for systems that don't have a
monotonic clock. None of the systems Quagga works on fall into that
category; Linux, BSD and Solaris all do clock_gettime, for OSX we have
mach_absolute_time() - that covers everything.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/thread.h')
| -rw-r--r-- | lib/thread.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/thread.h b/lib/thread.h index ac87595ee4..3c0387eb11 100644 --- a/lib/thread.h +++ b/lib/thread.h @@ -130,9 +130,7 @@ struct cpu_thread_history /* Clocks supported by Quagga */ enum quagga_clkid { - QUAGGA_CLK_REALTIME = 0, /* ala gettimeofday() */ - QUAGGA_CLK_MONOTONIC, /* monotonic, against an indeterminate base */ - QUAGGA_CLK_REALTIME_STABILISED, /* like realtime, but non-decrementing */ + QUAGGA_CLK_MONOTONIC = 1, /* monotonic, against an indeterminate base */ }; /* Struct timeval's tv_usec one second value. */ @@ -254,7 +252,6 @@ extern struct cmd_element clear_thread_cpu_cmd; */ extern int quagga_gettime (enum quagga_clkid, struct timeval *); extern time_t quagga_monotime (void); -extern time_t quagga_time (time_t *); /* Returns elapsed real (wall clock) time. */ extern unsigned long thread_consumed_time(RUSAGE_T *after, RUSAGE_T *before, |
