I'm using Power Basic 3.1 and am compiling and running a program on a Windows 98 machine.
I'm trying to create a routine that performs a user-defined time delay within a program. The range of the delay is zero (no delay) to about 10 milliseconds (10,000 microseconds).
I've been playing with the MTIMER statement and function and it seems to me that the MTIMER statement itself takes some (large) amount of time to execute (repetitively anyways).
What I'm not clear on is what happens when the MTIMER statement is executed without at some point executing the corresponding MTIMER function (my limited trials so far do just that, and the MTIMER statement seems to take quite some time to execute).
So, again while running a compiled PB program in a full-screen MS-DOS session under Windows 98 SE, is MTIMER reliable or what?
I'm trying to create a routine that performs a user-defined time delay within a program. The range of the delay is zero (no delay) to about 10 milliseconds (10,000 microseconds).
I've been playing with the MTIMER statement and function and it seems to me that the MTIMER statement itself takes some (large) amount of time to execute (repetitively anyways).
What I'm not clear on is what happens when the MTIMER statement is executed without at some point executing the corresponding MTIMER function (my limited trials so far do just that, and the MTIMER statement seems to take quite some time to execute).
So, again while running a compiled PB program in a full-screen MS-DOS session under Windows 98 SE, is MTIMER reliable or what?
Comment