In Console output, when finished -> write elapsed time#19
In Console output, when finished -> write elapsed time#19timstarbuck wants to merge 2 commits intohmol:developfrom
Conversation
In Console output, when finished -> write elapsed time hmol#16
|
How about this way of doing it, do you see any differences? You can pull from here. |
|
I guess it depends on what we are trying to actually time :) Showing the elapsed time of each request seems beneficial. I took a different meaning. I took "when finished" to mean when the site crawl has completed crawling all the links. |
|
@timstarbuck true |
|
Hey, and thanks for contributing to my repository here 😄 And the problem is that I don't really know (right now) how to do it in another way, but I had something like this in mind: http://stackoverflow.com/a/25010220. I dont think we can use this here, because then we would need to have all the urls to crawl at start. |
|
Ha, yes. I felt it was a bit "hacky" as well, but as you mentioned, it works ;). Its a bit of a chicken and egg problem. You don't know how many links there are to crawl until they've all been crawled. I'll ponder your notes some and see if I can think of another way. |
Nice project! I added a counter and Interlocked.Increment/Decrement and a loop to wait for completion. Then I added an IOutput method to write a string (only implemented in Console output).
Seems you could also raise an event so the driving program knows its finished.
Let me know what you think!