Keep track of how long a certain variable is active

hey is there a way to keep a time count of any time a certain variable is active of tripped

just saw the variable Runtime but what is it calculated in and is that the total tripped time?

Runtime is calculated in seconds and it does indeed accumulate total time in tripped state. It is not a free-running clock–it is not updated every second or on any other regular time interval, it is updated at the end of every sensor update (so, whenever any event occurs that causes a condition to be reevaluated). There’s a ResetRuntime action to reset it.