diff options
author | Stef Walter <stef@memberwebs.com> | 2006-03-30 00:56:33 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2006-03-30 00:56:33 +0000 |
commit | 1275e46db5ae7017fef8a4cc95fb99343bb182f6 (patch) | |
tree | b165ed44b80394ff8758e5d1a57c8ed73d98d9ac /module/bsnmp-regex.c | |
parent | c62d4bcfb91cedf6b53db77a3cc15b2411342520 (diff) |
Use built in time counter.
Diffstat (limited to 'module/bsnmp-regex.c')
-rw-r--r-- | module/bsnmp-regex.c | 12 |
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 |