Detect two bangs within a given interval

This example demonstrates a way to detect if two events, coming from two different sources, occur within a given interval of time from each other. We use the cpuclock object to detect the time at the moment each event occurs. The output of either cpuclock object in this example will trigger a subtraction calculation between the timings of the most recent eventĀ from each source.