TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Dominique Curtis
from: Kurt Kuzba
date: 1998-12-14 21:09:18
subject: TC++ Delay() function...

DC> KK>   timeouts online and loss of carrier.
DC>   opendoors comm library which automatically checks for
   I thought it might. I have it, registered, with source, but
   never got around to using it. Still moving along with
   classes and no time for personal projects.
DC> KK>   using the BIOS timer, which keeps the system clock
DC> KK>   ticks since midnight. You can find it at 0x0040006c.
DC>   So I could use this instead of the delay() function?
   Right. But I can only speak in terms of DOS on this one,
   and with the caveat that it may be effected by any ISR
   which tampers with the timer and does not adjust the
   increment rate for the BIOS clock properly.
   ( Though they all should, of course. :)
DC>   the delay times REALLY slow down.. but like that spiral
DC>   that was fixed, I want to apply the same idea whereever
DC>   I use the delay fucntion to cut down or lessen these
DC>   slowdowns . :)
   Then the BIOS clock should help.
   You will probably want to make it more friendly by testing
   for a multi-tasking environment early on and setting a flag,
   and then switching timing routines according to the flag,
   using the time-slice to surrender processor time if there is
   a multi-tasking OS in place and a simple loop to burn clock
   cycles if there is not.

> ] Opossums on the Information Rustic Road.....................

---
* Origin: *YOPS ]I[* 8.4 GIG * RA/FD/FE * Milwaukee, WI (1:154/750)
SEEN-BY: 396/1 632/0 371 633/260 262 267 270 371 634/397 635/506 728 639/252
SEEN-BY: 670/218
@PATH: 154/750 222 396/1 633/260 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.