I think of tempo runs as speed training practising the pace you're eventually wanting to race, and holding that pace fairly consistently for a period of time, as opposed to speeding up. If you're training for a 10K race, 40 mins sounds quite a long time at 10 K pace, unless that included a mile warm up/warm down.
I'm currently using tempo runs for 1/2 marathon training with good effect, usually do 8 miles at or slightly faster than my target race pace. In theory you should cool down at the end with 1-2 slow miles, but I tend to skip that out of impatience.