This commit adds a new variable gcTime to the ActionTimeout class and subtracts it from the total time when calculating the time difference between the start and stop timestamps. The gcTime variable is calculated by iterating over the list of Garbage Collector MXBeans and summing up the collection times. This change improves the accuracy of the time tracking by accounting for the time spent in garbage collection.
These changes has not been tested, but are more a idea to be presended.
Did not expect that this is even possible, interesting!
But I think we have to wait for next season so we have sufficient time for testing in practice.
This commit adds a new variable
gcTime
to theActionTimeout
class and subtracts it from the total time when calculating the time difference between the start and stop timestamps. ThegcTime
variable is calculated by iterating over the list of Garbage Collector MXBeans and summing up the collection times. This change improves the accuracy of the time tracking by accounting for the time spent in garbage collection.These changes has not been tested, but are more a idea to be presended.