summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_spf.c
diff options
context:
space:
mode:
authorTakashi Sogabe <sogabe@iij.ad.jp>2009-06-22 13:07:02 +0900
committerPaul Jakma <paul@quagga.net>2009-06-22 12:21:22 +0100
commit86f72dcba35f055b5344deeb5f057c2f1d9a291f (patch)
treeb128af27119cf27a709423814709a5a0bde98bae /ospf6d/ospf6_spf.c
parentf7e0db80693aea7f5fd3d8d4f00e97347c8d0ba5 (diff)
downloadquagga-86f72dcba35f055b5344deeb5f057c2f1d9a291f.tar.bz2
quagga-86f72dcba35f055b5344deeb5f057c2f1d9a291f.tar.xz
Convert ospf6d over to quagga_gettime() wrappers.
Diffstat (limited to 'ospf6d/ospf6_spf.c')
-rw-r--r--ospf6d/ospf6_spf.c4
1 files changed, 2 insertions, 2 deletions
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))