measuring volume in function of time