In tag event scripts, you have previousValue
and currentValue
available and are fully qualified values. You can access the previous timestamp by doing previousValue.timestamp
and the same with the currentValue.
You can also look into event meters in transaction groups
Hour and Event Meters - Transaction Group Items (inductiveuniversity.com)