Hi Oxa,
I made a typo in the formula, should be:
(now_time-event_off)/mf_minute
You are right. My bad!!! I would correct in my post but i don´t know how to do that.
The question i place is:
and if there is a false start? Will the event_off restart with the new value? That´s why i was thinking that "last_inplay" would be better.
With football it's much better though: I've never heard of it not changing for a whole minute. Can you share the results of your tests, i.e. in what matches was this variable inaccurate?
Till now, in no match the rate was constant or, at least, close to 5 sec. To give you a better information, i made some random tests with the current inplay matches
Barcelona v Leganes - update from 64.38 to 65.18
Sint Truidense (res) v Anderlech (res)-from 24.03 to 24.72
Colchester U23 v Reading U23- from 26.77 to 27.55
hamburger SV v Nurberg - from 4.5 to 5.18
Breidablik v IA Akranes - 80.95 to 81.50
KR Reykjavik v Vikingur Reykjavik - from 40.83 to 41.22
Birkirkara v Banik Ostrava - from 35.87 to 36.10
Europa Point FC v Glacis Utd - from 10.85 to 11.23.
The discrepancy between the time that has passed since the off and match_minute is very insignificant: seconds, half a minute max. But that's until the end of the first half.
Yes, you are right the difference is, at the moment of the update of match_minute, usually less than 30 seconds. But match_minute seems to be updated, i would say in average each 30 seconds, and worse than that in a not constant rate. So, the difference can be greater than 1 minute and not fully predictable. For the strategy i want to implement that´s not enough.
I will make some tests to see which one is more accurate and, if it´s match_minute at the moment of the update, i will probably go with an hybrid solution. An user variable based on an one shot of match_minute but updating at the second. I still need to materialise it.
Thanks,