I had already written a C++/MFC version of the program. For that version, the calculation was instantaneous, much less than a second.
I also experimented with some objects. Consider the following code fragment:
obj.value = 5
obj.vaule = obj.value + 1
In C++, this leads to a compiler error, “vaule not a member of obj”.