added wait measurement