diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2017-01-23 18:16:03 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2017-01-23 18:26:33 +0100 |
| commit | 816c2194ca4198767c766d729636fd4af6afedf0 (patch) | |
| tree | e1299638918584d883732e9b6cbb3c1716eceeb7 /lib/thread.c | |
| parent | cf672a865428b5e55844b6d2e01ca9d3bd4afe6b (diff) | |
ospfd: simplify SPF time consumption calculations
monotime_since() does exactly the same thing.
... and timeval_elapsed is now private to lib/thread.c
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/thread.c')
| -rw-r--r-- | lib/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/thread.c b/lib/thread.c index cb7676f0e2..fe4f5c11c9 100644 --- a/lib/thread.c +++ b/lib/thread.c @@ -46,7 +46,7 @@ static struct timeval relative_time; static struct hash *cpu_record = NULL; -unsigned long +static unsigned long timeval_elapsed (struct timeval a, struct timeval b) { return (((a.tv_sec - b.tv_sec) * TIMER_SECOND_MICRO) |
