Speed Test
Re:Speed Test
Err, is it just me or won't any code you use to check speed inside bochs give the 'Emulated' speed of the processor, not the equivalent real time speed?
Re:Speed Test
Yes, re reading my post i realised it didn't quite put across what i intended. It was purely a comparative excercise to show the difference in speed between emulating something and running it natively.
Peter
Peter
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Speed Test
busy looping is a very old-fashionned and unportable way to wait ... you should better replace your loop by something that will be kept accurate regardless of the actual CPU speed, like
* waiting for a timer interrupt
* waiting for a keypress (my personnal favourite one - can even be done by polling the keyboard port if you don't have an IDT up and running already
* waiting for a screen vertical retrace (if interrupt set up seems too hard to you)
* waiting for a timer interrupt
* waiting for a keypress (my personnal favourite one - can even be done by polling the keyboard port if you don't have an IDT up and running already
* waiting for a screen vertical retrace (if interrupt set up seems too hard to you)