added a way to computed delta time between spikes