I'm working on a c# console application.
I have to show a timer on screen at a specified cursor location and at the same time a user shall input something.
How can I do this?
Console.SetCursorPosition(x, y);
//timer code here
Console.SetCursorPosition(x, y); // cursor goes to some other location because timer is displayed at top-right of the screen.
My problem is that this method isn't synchronized. I have to wait until the cursor go to that location then display time and comes back so that I can type.