From 86f72dcba35f055b5344deeb5f057c2f1d9a291f Mon Sep 17 00:00:00 2001 From: Takashi Sogabe Date: Mon, 22 Jun 2009 13:07:02 +0900 Subject: Convert ospf6d over to quagga_gettime() wrappers. --- ospf6d/ospf6_spf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ospf6d/ospf6_spf.c') diff --git a/ospf6d/ospf6_spf.c b/ospf6d/ospf6_spf.c index 44e11f9d..bfb6df2e 100644 --- a/ospf6d/ospf6_spf.c +++ b/ospf6d/ospf6_spf.c @@ -527,9 +527,9 @@ ospf6_spf_calculation_thread (struct thread *t) ospf6_spf_log_database (oa); /* execute SPF calculation */ - gettimeofday (&start, (struct timezone *) NULL); + quagga_gettime (QUAGGA_CLK_MONOTONIC, &start); ospf6_spf_calculation (oa->ospf6->router_id, oa->spf_table, oa); - gettimeofday (&end, (struct timezone *) NULL); + quagga_gettime (QUAGGA_CLK_MONOTONIC, &end); timersub (&end, &start, &runtime); if (IS_OSPF6_DEBUG_SPF (PROCESS) || IS_OSPF6_DEBUG_SPF (TIME)) -- cgit v1.2.1