Mazdaspeed3 / Mazda 3 MPS is equipped with on-board computer. Simply press INFO button for a while and you can read actual fuel consumption, average fuel consumption, average speed and the approximate range on owned fuel. But I found information that on-board domputer is not enabled in some versions of Mazda 3. Normally in versions below Grand Touring you have to pay for that, but for some reason it is trivially easy to unlock it. Probably this works on 2006 and later models, but why not to try this trick? After all, it will not explode ;)
To activate the on-board computer you need to:
That's it! Now, after you turn ignition on, the SET button on the stereo operates the computer. If you had the Grand Touring model the button would say INFO (as in MPS/Mazdaspeed). If you want to change display press SET button one more time, and so on. To view back the clock, press CLOCK (TIME) button. Press and hold SET button for 2 seconds to switch back to computer.
The sequence just do once and then you can switch between clock and computer.
Good luck!