Display time & distance on panel?

Are there simvars for time & distance from origin? I tried to find them but
was unsuccessful. I have an addon panel where I want to display them. I tried
storing the origin location, but all variables appear to get reset when the
panel is closed. Is there any other way to do this? Thanks.