no i dont want it to use sleep, i want the program to exit after displaying the message. So when i execute the program at 7:05:02 i get a message and if i execute the program at 7:05:06 i get the next message. Should have explained that sorry. and i dont want to write to disk either.