Re: DOS time() [was Re: Rob: Bug with Windows trasking translator]

new topic     » goto parent     » topic index » view thread      » older message » newer message

Robert Craig wrote:
> 
> Bob Elia wrote:
> > I have found that using tick_rate()under DOS32 with any legal value other
> > than 0 increases the speed of time() by a factor of more than 100.
> 
> Yes, I just checked it.
> time(), on DOS, takes much less time to execute when
> you set a tick_rate (other than the default).
> 
> Another advantage to tick_rate() is that time() won't wrap around 
> every 24 hours, since I use a 32-bit clock-tick counter to count 
> the clock interrupts, rather than relying on the usual call to DOS.
> I figure it would take several months to wrap, at 100 ticks/sec.
> 
> Regards,
>    Rob Craig
>    Rapid Deployment Software
>    <a href="http://www.RapidEuphoria.com">http://www.RapidEuphoria.com</a>


Ah, very interesting.
Does that mean that time(20) would take 5 * "several months" ?

Bob

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu