begin
var counter := 0;
while True do
Print(counter);
counter += 1;
Sleep(500);
end;
Console.CancelKeyPress += (o,e) -> begin
Println(Milliseconds);
halt
end.