DC> Code not necessary if you can give a decent algorithm :-)
JB> a decent algorithm put simply:
JB> time_to_run = time_at_finish - time_at_start;
JB> you should be able to get 10th-of-second accuracy from the O/S
Of course, I need to handle things like if the hour etc has changed (or the
day) :-) I sorta want to find something a little better, although I'm yet to
seriously play with something like you've suggested above.
JB> I've got a C algorithm (that's DOS only AFAIK) that gives microsecond
JB> accuracy. (I didn't believe it until I saw it) if this would
JB> help I could try to port it.
If it doesn't touch the timer chip (or anything else that could interferre
with something in a multitasking environment) then please do.
Cya..
- David Chord
- Un Named BBS
... 24 hours in a day and 24 beers in a case... Hmmm...
This message was written in the excellent DCTEdit v0.04 message editor!
--- Maximus 3.01
---------------
* Origin: GnomeVille - DiGiTaL ViSiON WHQ - +64 4 235-6887 (3:771/1560)
|