I got what I wanted. My altimeter needle runs noticeably faster than the variometer needle. That's the code I did it with:
Note that the string with zeroing of the Value parameter is commented on. I needed the static pressure not to slow down in any way, the altimeter had to work fast.
And that was my last fix on the C172mod.tmd file. I made a few more editions in it, after which my Cessna in Aerofly began to fly almost the same way as the real one, which I had to pilot. She began to feel the full load of 3 passengers and fuel under the maximum permitted gross weight.
Thank you for your help.