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);

}