Residence times and magmatic evolution