Mail Archives: djgpp/1997/02/17/18:58:21
Jan Hubicka writes:
>You should do following
>allegro_init
>horo works uclock well
>install_timer
>and here uclock crashes
>allegro_exit
You can't mix the timer routines from Allegro with calls to uclock():
they use the timer in totally different and incompatible ways...
It will work better if you use the non-dynamic version of the Allegro
timer code (this is new in v2.2: to select it either run your app under
win95 or set the global variable i_love_bill to TRUE). On my machine
that stops uclock() from crashing, but still screws up the measurements.
The BIOS tick value will be correct, but the low bits will be wrong, so
uclock() will only be accurate to an 18.2'th of a second.
/*
* Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
* Ghoti: 'gh' as in 'enough', 'o' as in 'women', and 'ti' as in 'nation'.
*/
- Raw text -