How do I calculate diff between two consecutive payloads

Thanks for your responses. To be clear, I want to subtract content of payload n from payload n+1, not find the time gap between the two.

As suggested, I'm going to run two snmp nodes and fire the second one with a short delay. Store both to context and run function node to subtract one from the other.