timeSinceEvent function

Calculate "time since event" in a vector.