[Csci551-talk] Re: more info on odd time delay values
S. Rubin
srubin at flash.net
Mon Apr 18 11:19:36 PDT 2005
Perhaps I could clarify a bit more. I am in a loop for at most 8 segments.
Selections of a segment and a seed from which to download, plus
misc. steps take about 1 msec (I timed it). Once the selections are done,
the timer is added (with the delay value specified - see below) and a callback
routine is specifed. The only code between the timer addition and the timer
expiration routine where I print the time difference (see below) is the selection
of the next segment and a seed (since I am in the for loop), which as I stated
above takes about 1 msec. I cannot figure out what is happening in the system
that ends up taking so much more extra time. Any input is greatly appreciated.
Perhaps someone could time theirs and see what their timing is. I am running
on cygwin, but I do not think that it is the reason for the extra delay.
Sophia
"S. Rubin" <srubin at flash.net> wrote:
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/20050418/52a2a8be/attachment.html
More information about the Csci551-talk
mailing list