Not really enough information to be going on, to be honest.
If using a mtb will you be intending to use a second wheel with a slick tyre on, or are you intending on buying a direct drive turbo trainer and removing the wheel from the mtb?
What is your budget?
Are you intending on using it as stand-alone or with a program like Zwift?
I guess you’ve had an auto-correct error in your original post; do you mean you want to record pace (speed) & distance? ‘Dumb’ trainers don’t generally record any metrics so you might need a bike computer with sensor fitted to the rear wheel to provide metrics. If you are using Zwift or similar, then that will record all the stats you need.
You can spend anything from about £80 to £1500 on a turbo set-up, so a bit more information on what you are after, would help.