aboutsummaryrefslogtreecommitdiffstats
path: root/timestats.c
AgeCommit message (Collapse)AuthorFilesLines
2011-02-17On Windows, try putting __declspec(noreturn) in front of declarations ofguy1-0/+4
routines that don't return. (This requires that some files include config.h to get WS_MSVC_NORETURN declared properly.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35989 f5534014-38df-0310-8fa8-9805f1628bb7
2008-08-28In time_stat_init(), initialize all the structure members.guy1-6/+6
Initialize the nstime_t members by calling nstime_set_zero(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26102 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21name changesahlberg1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18197 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-24EVERYTHING IN THE BUILDBOT IS GOING TO BE RED!!! Sorry! ulfl1-1/+1
I've done more than a day to change the timestamp resolution from microseconds to nanoseconds. As I really don't want to loose those changes, I'm going to check in the changes I've done so far. Hopefully someone else will give me a helping hand with the things left ... What's done: I've changed the timestamp resolution from usec to nsec in almost any place in the sources. I've changed parts of the implementation in nstime.s/.h and a lot of places elsewhere. As I don't understand the editcap source (well, I'm maybe just too tired right now), hopefully someone else might be able to fix this soon. Doing all those changes, we get native nanosecond timestamp resolution in Ethereal. After fixing all the remaining issues, I'll take a look how to display this in a convenient way... As I've also changed the wiretap timestamp resolution from usec to nsec we might want to change the wiretap version number... git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15520 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-22Add a "time_stat_init()" routine to initialize the fields of aguy1-26/+16
"timestat_t". Move "nstime_to_msec()" to "epan/nstime.c", as it has nothing to do with a "timestat_t". Use structure assignment when possible. Fix the "addtime()" macro and use it in "time_stat_update()". Use "timestat_t"s, and the routines to manipulate them, in the service response time table code. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15509 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-03From Richard van der Hoff:etxrab1-30/+0
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). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15201 f5534014-38df-0310-8fa8-9805f1628bb7
2004-12-31Make arguments "const *" if the routine doesn't modify the object toguy1-5/+5
which they point. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12887 f5534014-38df-0310-8fa8-9805f1628bb7
2004-07-18Set the svn:eol-style property on all text files to "native", so thatguy1-1/+1
they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11400 f5534014-38df-0310-8fa8-9805f1628bb7
2003-09-03fix to various stats tables.sahlberg1-5/+3
The code used to rely on min_time==0 to determine whether this was the first packet or not and whereby we had to initialize min_time to the current value. This obviously does not work for capture files with poor timestamp resolution where the response time is actually, according to the capture file, 0 and we got all sorts of weird effects like average response time being less than the minimum response time. note, the bug only affected the minimum response time in the tables and not max or average response time. it would "miss" tose minimum response times that were ==0 and display the minumin response time in the capture that were >0 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8358 f5534014-38df-0310-8fa8-9805f1628bb7
2003-04-16From Lars Roland:guy1-0/+132
Add Response-Time statistics for each known mgcp message-type. Fix a few bugs and remove trailing whitespace. Use "gdouble" for printing time-values and calculating the average. It is easier to use and shouldn't overflow on big trace files like "guint32". Move some functions for time statistics into the new file timestats.c in the main directory. This code may be useful in the rpc and smb rtt-taps as well. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7469 f5534014-38df-0310-8fa8-9805f1628bb7