hi
if i set my clock to a rate generator and set the reload value to 0x91A7 and then increment the "number of seconds" counter on every 32nd clock interrupt, that should be correct, or am i doing some calculation wrong?
im running on bochs and to me it seems seconds are passing *way* to fast (maybe even twice as fast as they should)...is that due to some inaccuracy with bochs or are my calculations wrong?
counting seconds
-
- Member
- Posts: 199
- Joined: Fri Jul 13, 2007 6:37 am
- Location: Stuttgart/Germany
- Contact:
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
bochs is by default set for speed and repeatability. i.e. time passes as fast as bochs can make it pass
to fix this, either use the realtime or the slowdown timer. The realtime one is faster, the slowdown is more accurate. check your bochs config for the IPS and clock lines and read the corresponding documentation
to fix this, either use the realtime or the slowdown timer. The realtime one is faster, the slowdown is more accurate. check your bochs config for the IPS and clock lines and read the corresponding documentation