out if curiosity: could we use events instead of computing the duration ?