I am working on an console application that requires it to sleep for long periods of time between processing. Sometimes for only a few minutess, other times for hours.
Currently, I am using the below routine to sleep for those time periods...
I understand this is a console application and this is the Windows section but was curious just in general windows programming is this the most approriate way to do a long-term sleep?
Currently, I am using the below routine to sleep for those time periods...
Code:
SUB SleepMinutes(lngMinutes AS LONG) SLEEP 60000 * lngMinutes END SUB
Comment