Code: Select all
settimer, InitQueues, -3
settimer, DownloadHtmlFile, -5
...
InitQueues() {
debug("InitQueues " xtime())
....
}
DownloadHtmlfile() {
t:=substr(xtime(),12)
...
t1:=substr(xtime(),12)
...
debug(format("DownloadHtmlfile {}-{}-{}, {} files",t,t1,substr(xtime(),12),NL.Count()))
}
The debug output looks like this:
Code: Select all
804 DownloadHtmlfile 19:41:10-19:41:14-19:41:32, 12885 files <---- 19:41:32 is the ending time of this routine
209 InitQueues 19:41:32
How can I have the two threads execute in parallel?
And any other hints how to speed processing? There a lot to do, still the same job would not need more than a a few seconds in a compiled language like Delphi. I have already placed listlines, off before the main loops and placed most commands of those loops in a "single code line" using continuation lines