add time measure for flush