Out of idle curiosity, how are RUCs determined for diesel cars at the moment? Simple speedo reading by rate or what?

Because I have a sneaking suspicion that modern “software-driven” vehicles are probably going to be smart enough to self-report