-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Console output, when finished -> write elapsed time #16
Comments
Hi! A novice programmer here. I would like to work on this. |
hello @sourangshu24 |
Hi @hmol ! I was thinking more on the lines of modifying Program.cs to store the local system times ( for start and end times) before a call to linkCrawler.Start() is made and before Console.Read() is called respectively. I supppose even async calls will finish by the time control jumps back to Program.cs to call Console.Read(). Please correct me if I am wrong and if my approach is wrong. |
Yeah, you can clone my repo and test it if you want :) |
I tested it as you suggested, and you are right! It does show "This is the end" at the beginning. Going back to your earlier suggestion of changing the LinkCrawler.cs file itself, i think a Stopwatch object should do the trick if i include it before calling the async function. But I need to research how to know when an async function has stopped executing. |
In Console output, when finished -> write elapsed time hmol#16
Think I've got a solution to this. Don't want to tread on any toes though - is anyone else actively working on this? |
When program is finished running, write elapsed time to console output.
The text was updated successfully, but these errors were encountered: