On Thu, May 14, 2009 at 2:39 PM, Asif Iqbal <vadud3 at gmail.com> wrote:
On Thu, May 14, 2009 at 3:09 PM, Ralph Mitchell <ralphmitchell at gmail.com>wrote:
Maybe I'm missing something, but... Why not just grab the system date/time at the start, again at the end, then subtract one
How do I know the end? The clients are constantly feeding data to hobbitd_channel and they may not be coming in sequential order. I may receive data from one host twice who is right next to hobbit server before I receive client data for another host which is in different country
Looking at the ssmodule sample program, I think I would pick up the start and end time in the 'processmessage' routine. The hostname gets passed through to that routine, so you could log a timestamp, the hostname and the duration for each host.
Ralph Mitchell