include total sampling time calculation to sampring_rate()