D
Dave
I have a program written in C that needs a way to run a function every
second or two (resolution 100 mS). The program is a console program.
What I would like is likely a DOS API that allows a sleep for a
period of time so that other operations on the computer are not
disturbed. I have looked through a few books, the web, and news
groups, but have not found a solution. I recall a number of DOS
programs, such as games and terminal programs, that used similar
functionality. Any suggestions?
Portability is not a big issue in that it is a DOS program always, but
that said, there may be differences between the versions of DOS and
Windows that will need to be tested in code.
second or two (resolution 100 mS). The program is a console program.
What I would like is likely a DOS API that allows a sleep for a
period of time so that other operations on the computer are not
disturbed. I have looked through a few books, the web, and news
groups, but have not found a solution. I recall a number of DOS
programs, such as games and terminal programs, that used similar
functionality. Any suggestions?
Portability is not a big issue in that it is a DOS program always, but
that said, there may be differences between the versions of DOS and
Windows that will need to be tested in code.