total sample duration based on number of samples instead of time.