summaryrefslogtreecommitdiff
path: root/module/bsnmp-regex.c
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2006-03-30 00:56:33 +0000
committerStef Walter <stef@memberwebs.com>2006-03-30 00:56:33 +0000
commit1275e46db5ae7017fef8a4cc95fb99343bb182f6 (patch)
treeb165ed44b80394ff8758e5d1a57c8ed73d98d9ac /module/bsnmp-regex.c
parentc62d4bcfb91cedf6b53db77a3cc15b2411342520 (diff)
Use built in time counter.
Diffstat (limited to 'module/bsnmp-regex.c')
-rw-r--r--module/bsnmp-regex.c12
1 files changed, 1 insertions, 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