From 1275e46db5ae7017fef8a4cc95fb99343bb182f6 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 30 Mar 2006 00:56:33 +0000 Subject: Use built in time counter. --- module/bsnmp-regex.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/module/bsnmp-regex.c b/module/bsnmp-regex.c index c0aa252..2955681 100644 --- a/module/bsnmp-regex.c +++ b/module/bsnmp-regex.c @@ -187,17 +187,7 @@ strtrim (char* data) static uint64_t getcurrticks () { - struct timeval tp; - uint64_t t; - - /* Update tick count */ - if (gettimeofday (&tp, NULL) < 0) { - emsg ("couldn't get current time: %s", strerror (errno)); - return 0; - } - - t = (((uint64_t)tp.tv_sec) * 100) + (((uint64_t)tp.tv_usec) / 10000); - return t; + return get_ticks (); } #ifndef WITH_PCRE -- cgit v1.2.3