From e20f7ccd9e110fcd5deb945f8d23922efd8b0822 Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Tue, 29 Mar 2011 00:29:35 +0100 Subject: Bring "ex" version up to date with 0.99.18 Release: 0.99.18ex14 Also fixes issue with unknown attributes -- does not release them prematurely. Contains the "bgpd: New show commands for improved view and address family support", which is post 0.99.18. (But not RFC 5082 GTSM.) --- lib/qtime.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/qtime.c') diff --git a/lib/qtime.c b/lib/qtime.c index 3ec34a72..42b903da 100644 --- a/lib/qtime.c +++ b/lib/qtime.c @@ -192,3 +192,14 @@ qt_craft_monotonic(void) { return (monotonic * times_scale_q) + ((monotonic * times_scale_r) / times_clk_tcks) ; } ; + +/*------------------------------------------------------------------------------ + * Get crafted monotonic time -- in seconds + */ +extern time_t +qt_craft_mono_secs(void) +{ + qt_craft_monotonic() ; /* update the monotonic counter */ + + return monotonic / times_clk_tcks ; +} ; -- cgit v1.2.3