'What is the easiest way to extract a variable outside Unity for use in another program?

I am trying to find a way to extract this Time Manager variable I have in Unity in order to be able to use it in another program in C++ to graph some data. I have even went as far as to finding pointers to the memory address of the Time Manager and reading with ReadProcessMemory, but as you know each time you push out another build of Unity or change something, the pointers eventually get invalidated.

What is the easiest way to do this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source