diff options
author | Anders Broman <anders.broman@ericsson.com> | 2005-08-03 20:37:28 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2005-08-03 20:37:28 +0000 |
commit | 32f826a7cea1a6b72d1eea03866274fc39b59580 (patch) | |
tree | 1dbe75d349faea3f8f3569d9da7b17839fe6d352 /timestats.c | |
parent | d0811b3d350ac7c34a07c3f9b8d447b39804aa81 (diff) | |
download | wireshark-32f826a7cea1a6b72d1eea03866274fc39b59580.tar.gz wireshark-32f826a7cea1a6b72d1eea03866274fc39b59580.tar.bz2 wireshark-32f826a7cea1a6b72d1eea03866274fc39b59580.zip |
From Richard van der Hoff:
Among the improvements are:
- fixes to call-tracking (it's now less likely to confuse two separate
calls, for instance)
- improvements to Information Element dissection (clearer dissection,
dissects more IE types, easier to extend)
- you can now filter on the content of DTMF packets
- Analysis of timestamps (calculation of absolute timestamp, and packet
lateness).
- fixed a couple of assertion failures in subtle corner-cases.
negative relative times:
- get_timedelta()
- addtime()
- ftype-time.c:relative_val_from_unparsed()
I've also moved get_timedelta() and addtime() out of calldata.c into a
new file, epan/nstime.c, as I needed to use them in a dissector I'm
working on (and they therefore needed to go into libethereal).
svn path=/trunk/; revision=15201
Diffstat (limited to 'timestats.c')
-rw-r--r-- | timestats.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/timestats.c b/timestats.c index 48bb86cf27..18c1c6f58b 100644 --- a/timestats.c +++ b/timestats.c @@ -26,36 +26,6 @@ #include "timestats.h" /* - * function: get_timedelta - * delta = b - a - */ - -void get_timedelta(nstime_t *delta, const nstime_t *b, const nstime_t *a ) -{ - delta->secs = b->secs - a->secs; - delta->nsecs= b->nsecs - a->nsecs; - if(delta->nsecs<0){ - delta->nsecs+=1000000000; - delta->secs--; - } -} - -/* - * function: addtime - * sum += a - */ - -void addtime(nstime_t *sum, const nstime_t *a) -{ - sum->secs += a->secs; - sum->nsecs += a->nsecs; - if(sum->nsecs>1000000000){ - sum->nsecs-=1000000000; - sum->secs++; - } -} - -/* * function: nstime_to_msec * converts nstime to gdouble, time base is milli seconds */ |