, , , . .
- " " . " " ? , ? - :
while (true)
{
Thread.Sleep(1000);
DisplayCurrentStats();
}
( , , ), . ( - - , .)
, - . , :
while (true)
{
Thread.Sleep(1000);
DisplayCurrentStats();
var escape = Console.Read();
if (IsEscapeCharacter(escape))
break;
}
OutputGoodByeMessage();
IsEscapeCharacter() , , ( ), "escape". ( esc , - , " ".) , .
1 , . , 1/10 ( ), ( 1/10 ):
Thread.Sleep(100);