The Sigma mentioned above will show your total miles as well as the trip distance, trip time, total time, clock and speed. It is a wired model (recommended) , detaches instantly and uses a button battery. It is small but easily readable and simple to set up.
There are other brands, but I liked this one so much I bought another one for an old non-ebike.