[Csci551-talk] odd time delay values

S. Rubin srubin at flash.net
Sat Apr 16 16:49:53 PDT 2005


I am priniting out time stamps in msec (using timeval struct values and converting
them to msec) prior to causing delays to occur, and then again in the time expiration 
routine just before each message is sent.  As can be seen from the print statements
below my delays are set correctly, but when I print the actual time differences, I do
not see the expected delay values (see the result of subtraction).  Any explanation?
 
segment: 5, will delay by: 05, current time (msec): 1298317713
segment: 0, will delay by: 10, current time (msec): 1298317714
segment: 4, will delay by: 15, current time (msec): 1298317715
segment: 7, will delay by: 20, current time (msec): 1298317716
segment: 2, will delay by: 25, current time (msec): 1298317717
segment: 3, will delay by: 30, current time (msec): 1298317720
segment: 6, will delay by: 35, current time (msec): 1298317726
segment: 1, will delay by: 40, current time (msec): 1298317732

sending segment: 5, current time 1298317732  - original time 1298317713 = 19 (msec)
sending segment: 0, current time 1298317942  - original time 1298317714 = 228 (msec)
sending segment: 4, current time 1298318285  - original time 1298317715 = 570 (msec)
sending segment: 7, current time 1298318736  - original time 1298317716 = 1020 (msec)
sending segment: 2, current time 1298319165  - original time 1298317717 = 1448 (msec)
sending segment: 3, current time 1298319607  - original time 1298317720 = 1887 (msec)
sending segment: 6, current time 1298320051  - original time 1298317726 = 2325 (msec)
sending segment: 1, current time 1298320671  - original time 1298317732 = 2939 (msec)
 
Sophia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.isi.edu/pipermail/csci551-talk/attachments/20050416/78d8c624/attachment.html


More information about the Csci551-talk mailing list