Sleep/Delay

Can anybody do simple thing:
printing strings to the listingwindow
every 1 second?

bool beContinue =true;
while(beContinue)
{
lwObject.WriteLine(“your content”);
Thread.Sleep(1000);

}

I've not tested this, but it may cause the main NX thread to sleep, which would be undesirable.