Wish it was so. Would be much more useful than the odometer. Most service intervals are in time, not distance (e.g. fork, shock, dropper, etc.).
Just in case you hadn't thought of it, if you know your average speed you can get an approximation. Mine is about 13 mph for the vast majority of my riding (though recently I've been hitting a state park where it drops to more like 9 mph).