How can do a kind like >while (timer = twominutes); {my func}< without the tool (the rest of the programm) stand still ??

I heared about a CreateWaitTimer() but dont know to handle - or will be very happy about an example !!