i'm writing a program to use a system call to ping a server every once in a while to see if it's alive... i need to know which time.h functions and how to use them to put a few minutes in between each ping...
Printable View
i'm writing a program to use a system call to ping a server every once in a while to see if it's alive... i need to know which time.h functions and how to use them to put a few minutes in between each ping...
look into Sleep() in windows.h
http://cboard.cprogramming.com/showt...ighlight=sleep
http://cboard.cprogramming.com/searc...der=descending
But you can't use Sleep() if you want your program to do anything else in the meantime....
no, nothing going on in between pings... thanks for the help... jeebus... it was right there in the FAQ...Quote:
Originally posted by HybridM
But you can't use Sleep() if you want your program to do anything else in the meantime....